hasAndroidAdaptiveConfig function

bool hasAndroidAdaptiveConfig(
  1. Map<String, dynamic> platforms
)

Checks if the config has android adaptive.

Implementation

bool hasAndroidAdaptiveConfig(Map<String, dynamic> platforms) {
  return isNeedingNewAndroidIcon(platforms) &&
      ((platforms['android'] as Map<String, dynamic>)
              .containsKey('adaptive_background_image') ||
          (platforms['android'] as Map<String, dynamic>)
              .containsKey('adaptive_background_color')) &&
      (platforms['android'] as Map<String, dynamic>)
          .containsKey('adaptive_foreground_image');
}