MySplashGate constructor

MySplashGate({
  1. required bool hasOverlay,
  2. required bool hasBrandLottie,
  3. required bool hasStaticBrandFace,
  4. Duration minVisible = const Duration(milliseconds: 300),
  5. Duration brandTimeout = const Duration(seconds: 8),
  6. Duration bootstrapTimeout = const Duration(seconds: 20),
  7. List<MyBootstrapTask>? tasks,
  8. VoidCallback? onVisible,
  9. bool showWindowAfterFirstFrame = false,
  10. bool focusWindowAfterFirstFrame = false,
  11. void onError(
    1. Object error,
    2. StackTrace stack
    )?,
})

Implementation

MySplashGate({
  required this.hasOverlay,
  required this.hasBrandLottie,
  required this.hasStaticBrandFace,
  this.minVisible = const Duration(milliseconds: 300),
  this.brandTimeout = const Duration(seconds: 8),
  this.bootstrapTimeout = const Duration(seconds: 20),
  List<MyBootstrapTask>? tasks,
  this.onVisible,
  this.showWindowAfterFirstFrame = false,
  this.focusWindowAfterFirstFrame = false,
  this.onError,
}) : tasks = List<MyBootstrapTask>.unmodifiable(tasks ?? const []);