applySplash function
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,
);
}