RiveSplashScreen constructor

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

Implementation

const RiveSplashScreen(
  this.name, {
  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);