SplashMaster.lottie constructor

const SplashMaster.lottie({
  1. Key? key,
  2. Widget? nextScreen,
  3. required Source source,
  4. VoidCallback? customNavigation,
  5. LottieConfig? lottieConfig,
  6. VoidCallback? onSourceLoaded,
  7. Color? backGroundColor,
})

Set lottie as splash screen

Implementation

const SplashMaster.lottie({
  super.key,
  this.nextScreen,
  required this.source,
  this.customNavigation,
  this.lottieConfig,
  this.onSourceLoaded,
  this.backGroundColor,
})  : splashMediaType = SplashMediaType.lottie,
      videoConfig = null;