createAndroidAdaptiveIcon function

void createAndroidAdaptiveIcon({
  1. required String background,
  2. required String foreground,
  3. String? round,
  4. String? monochrome,
})

Start android adaptive icons

Implementation

void createAndroidAdaptiveIcon({
  required String background,
  required String foreground,
  String? round,
  String? monochrome,
}) {
  var message = 'Creating Android adaptive icons...';
  if (round != null) {
    message = 'Creating Android adaptive icons with round...';
  }
  CliLogger.info(message);

  _createAdaptiveForeground(adaptiveIcons, foreground);
  _createAdaptiveBackground(adaptiveIcons, background, monochrome);
  if (round != null) {
    _createAdaptiveRound(
        androidIcons, round, isValidHexaCode(background), monochrome != null);
  } else {
    _removeAdaptiveRound(androidIcons);
  }
  if (monochrome != null) {
    _createAdaptiveMonochrome(adaptiveIcons, monochrome);
  } else {
    _removeAdaptiveMonochrome(adaptiveIcons);
  }
}