toMap method
Converts this launcher icon configuration to a map.
The returned map uses keys compatible with the
flutter_launcher_icons configuration format.
Implementation
Map<String, Object?> toMap() {
return {
'image_path': imagePath,
'android': android,
'ios': ios,
'adaptive_icon_background': adaptiveBackground,
'adaptive_icon_foreground': adaptiveForeground,
if (adaptiveMonochrome != null && adaptiveMonochrome!.isNotEmpty) 'adaptive_icon_monochrome': adaptiveMonochrome,
'remove_alpha_ios': removeAlphaIos,
'web': {
'generate': web,
'image_path': imagePath,
'background_color': adaptiveBackground,
'theme_color': '#000000',
},
};
}