applySplash function

Future<void> applySplash({
  1. String? imageSource,
  2. String? color,
  3. String? gravity,
  4. String? iosContentMode,
  5. YamlMap? android12AndAbove,
})

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,
  YamlMap? android12AndAbove,
}) async {
  await generateIosImages(
    imageSource: imageSource,
    color: color,
    iosContentMode: iosContentMode,
  );
  await applyAndroidSplashImage(
    imageSource: imageSource,
    color: color,
    gravity: gravity,
    android12AndAbove: android12AndAbove,
  );
}