applySplash function

Future<void> applySplash({
  1. String? imageSource,
  2. String? color,
  3. String? gravity,
  4. String? iosContentMode,
  5. String? backgroundImage,
  6. String? iosBackgroundContentMode,
  7. YamlMap? android12AndAbove,
  8. String? backgroundImageSource,
  9. String? backgroundImageGravity,
  10. String? darkImage,
  11. String? darkColor,
  12. String? darkGravity,
})

Applies the splash screen on Android and iOS using details from the YAML file.

Implementation

Future<void> applySplash({
  String? imageSource,
  String? color,
  String? gravity,
  String? iosContentMode,
  String? backgroundImage,
  String? iosBackgroundContentMode,
  YamlMap? android12AndAbove,
  String? backgroundImageSource,
  String? backgroundImageGravity,
  String? darkImage,
  String? darkColor,
  String? darkGravity,
}) async {
  await generateIosImages(
    imageSource: imageSource,
    color: color,
    backgroundImage: backgroundImage,
    iosContentMode: iosContentMode,
    iosBackgroundContentMode: iosBackgroundContentMode,
  );
  await applyAndroidSplashImage(
    imageSource: imageSource,
    color: color,
    gravity: gravity,
    android12AndAbove: android12AndAbove,
    backgroundImageSource: backgroundImageSource,
    backgroundImageGravity: backgroundImageGravity,
    darkImage: darkImage,
    darkColor: darkColor,
    darkGravity: darkGravity,
  );
}