builder property
builder requires you to return a Widget and provides two arguments:
The two arguments are:
- BuildContext, context; the thing that nobody knows what it is
- ThemeMode, tells you what is the current theme mode
Implementation
final Widget Function(BuildContext, ThemeMode) builder;