FlutterLoadingScreen constructor
FlutterLoadingScreen({
- Key? key,
- required List initializers,
- required NextPageParam nextPageParam,
- Color? loaderColor,
- String? title,
- TextStyle? titleStyle,
- Image? image,
- Widget? titleWidget,
- Color? backgroundColor = Colors.white,
- TextStyle? styleTextUnderTheLoader = const TextStyle(fontSize: 18.0, fontWeight: FontWeight.bold, color: Colors.black),
- String? initialMessage,
Constructor for the LoadingScreen widget with all the required initializers
Implementation
FlutterLoadingScreen({
super.key,
required this.initializers,
required this.nextPageParam,
this.loaderColor,
this.title,
this.titleStyle,
this.image,
this.titleWidget,
this.backgroundColor = Colors.white,
this.styleTextUnderTheLoader = const TextStyle(
fontSize: 18.0, fontWeight: FontWeight.bold, color: Colors.black),
this.initialMessage,
})
// The Widget depends on the initializers and navigateToWidget to have a
// valid value. Thus we assert that the values passed are valid and
// not null
: assert(initializers.isNotEmpty);