Loader typedef
Loader =
Widget Function(BuildContext context)
A builder for a widget that is shown when the app is loading.
This builder is called to create a loading indicator during app initialization
or when loading content. The context
parameter provides access to the
current build context.
Example:
Loader loader = (context) => const Center(
child: CircularProgressIndicator(),
);
Implementation
typedef Loader = Widget Function(BuildContext context);