FlutterLoadingScreen constructor

FlutterLoadingScreen({
  1. Key? key,
  2. required List initializers,
  3. required NextPageParam nextPageParam,
  4. Color? loaderColor,
  5. String? title,
  6. TextStyle? titleStyle,
  7. Image? image,
  8. Widget? titleWidget,
  9. Color? backgroundColor = Colors.white,
  10. TextStyle? styleTextUnderTheLoader = const TextStyle(fontSize: 18.0, fontWeight: FontWeight.bold, color: Colors.black),
  11. 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);