SplashScreen constructor

const SplashScreen({
  1. Key? key,
  2. required Future<void> init,
  3. required Widget content,
  4. required Widget builder(
    1. BuildContext
    ),
  5. Duration duration = const Duration(seconds: 3),
})

Creates a SplashScreen.

The minimum duration of this splash defaults to three seconds.

Implementation

const SplashScreen({
  f.Key? key,
  required this.init,
  required this.content,
  required this.builder,
  this.duration = const Duration(seconds: 3),
}) : super(key: key);