SplashScreenView constructor

SplashScreenView({
  1. required Widget? navigateRoute,
  2. String? imageSrc,
  3. int? duration,
  4. int? imageSize,
  5. TextStyle? textStyle,
  6. int? speed,
  7. PageRouteTransition? pageRouteTransition,
  8. List<Color>? colors,
  9. TextType? textType,
  10. Color? backgroundColor,
  11. String? text,
})

Implementation

SplashScreenView(
    {required Widget? navigateRoute,
    String? imageSrc,
    int? duration,
    int? imageSize,
    TextStyle? textStyle,
    int? speed,
    PageRouteTransition? pageRouteTransition,
    List<Color>? colors,
    TextType? textType,
    Color? backgroundColor,
    String? text}) {
  _imageSrc = imageSrc;
  _widget = navigateRoute;
  _speed = speed;
  _duration = duration;
  _pageRouteTransition = pageRouteTransition;
  _colors = colors;
  _text = text;
  _textStyle = textStyle;
  _logoSize = imageSize;
  _backgroundColor = backgroundColor;
  _textType = TextType.values
      .firstWhere((f) => f == textType, orElse: () => TextType.NormalText);
}