SplashScreen constructor
const
SplashScreen(
- String name,
- WidgetBuilder? next, {
- String? loopAnimation,
- Key? key,
- bool? isLoading,
- Color? backgroundColor,
- Future<
void> until()?, - Alignment alignment = Alignment.center,
- double? width,
- double? height,
- RouteTransitionsBuilder? transitionsBuilder,
- String? endAnimation,
- String? startAnimation,
- dynamic onSuccess(
- dynamic data
- dynamic onError(
- dynamic error,
- dynamic stacktrace
- 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);