SplashScreen constructor

const SplashScreen(
  1. String name,
  2. WidgetBuilder? next, {
  3. String? loopAnimation,
  4. Key? key,
  5. bool? isLoading,
  6. Color? backgroundColor,
  7. Future<void> until()?,
  8. Alignment alignment = Alignment.center,
  9. double? width,
  10. double? height,
  11. RouteTransitionsBuilder? transitionsBuilder,
  12. String? endAnimation,
  13. String? startAnimation,
  14. dynamic onSuccess(
    1. dynamic data
    )?,
  15. dynamic onError(
    1. dynamic error,
    2. dynamic stacktrace
    )?,
  16. BoxFit? fit,
})

Implementation

const SplashScreen(
  this.name,
  this.next, {
  this.loopAnimation,
  Key? key,
  this.isLoading,
  this.backgroundColor,
  this.until,
  this.alignment = Alignment.center,
  this.width,
  this.height,
  this.transitionsBuilder,
  this.endAnimation,
  this.startAnimation,
  this.onSuccess,
  this.onError,
  this.fit,
})  : assert(!(isLoading != null && until != null),
          'isLoading and until are exclusive, pick one ;)'),
      assert(!(isLoading == null && until == null),
          'isLoading and until are null, pick one ;)'),
      super(key: key);