A builder is a Flutter design pattern in which the construction code of a widget is defined outside of its class . Builder functions are callback interfaces that pass data (often layout-specific) to the parent widget which returns a child based on that data.