SplashPage constructor

const SplashPage({
  1. Key? key,
  2. required String title,
  3. required String subtitle,
  4. required Widget nextPage,
  5. IconData? icon,
  6. Color? iconColor,
  7. String? assetImage,
  8. TextStyle? titleStyle,
  9. TextStyle? subtitleStyle,
  10. Color? backgroundColor,
})

Implementation

const SplashPage({
  super.key,
  required this.title,
  required this.subtitle,
  required this.nextPage,
  this.icon,
  this.iconColor,
  this.assetImage,
  this.titleStyle,
  this.subtitleStyle,
  this.backgroundColor,
}) : assert(
        icon != null || assetImage != null,
        'Either icon or assetImage must be provided',
      );