SplashSmoke constructor

SplashSmoke({
  1. Key? key,
  2. required Widget nextPage,
  3. required Widget child,
  4. TransitionType transitionType = TransitionType.fade,
  5. Object? arguments,
  6. String? routeName,
  7. Color backgroundColor = Colors.black,
  8. Color effectColor = const Color.fromRGBO(176, 176, 176, 1),
  9. Duration duration = const Duration(seconds: 8),
  10. Duration routeDuration = const Duration(seconds: 1),
  11. Duration durationColorEffect = const Duration(seconds: 1),
  12. double sigmaX = 100,
  13. double sigmaY = 100,
  14. Widget? rotatingLodingWidget,
  15. Curve curve = Curves.ease,
  16. ConditionalNavigations? conditionalNavigation,
})

Implementation

SplashSmoke({
  super.key,
  required this.nextPage,
  required this.child,
  this.transitionType = TransitionType.fade,
  this.arguments,
  this.routeName,
  this.backgroundColor = Colors.black,
  this.effectColor = const Color.fromRGBO(176, 176, 176, 1),
  this.duration = const Duration(seconds: 8),
  this.routeDuration = const Duration(seconds: 1),
  this.durationColorEffect = const Duration(seconds: 1),
  this.sigmaX = 100,
  this.sigmaY = 100,
  this.rotatingLodingWidget,
  this.curve = Curves.ease,
  this.conditionalNavigation,
}) : assert(nextPage != null || conditionalNavigation != null,
          'Either nextPage or conditionalNavigation must be provided');