- What is Predicate?
- Is a function return true or false.
- What is WidgetBuilder?
- It is a function that accepts context(BuildContext) as a parameter and returns dynamic widget(s).
- BuildContext VS WidgetBuilder VS ItemBuilder VS Builder [Dynamic nature]
- BilderContext - Can allow access to other widgets and properties of the tree. It also holds the location of a widget | object.
- WidgetBuilder - Create a new widget (single) based on the BuilderContext | function.
- typedef WidgetBuilder = Widget Function(BuildContext context);
- ItemBuilder- Create a new list of widgets (ListView, GridView where each item is intexed) based on the BuilderContext location representations | function.
- typedef ItemBuilder = Widget Function(BuildContext context, int index);
- Builder - Create a new child [widget] using the WidgetBuilder function based on the BuildContext parameter | widget.
No comments:
Post a Comment