load method
Loads the launcher icon configuration.
Returns null when the configuration file does not exist.
Implementation
Future<LauncherIconConfig?> load() async {
if (!await exists()) return null;
final yaml = loadYaml(await _file.readAsString());
return LauncherIconConfig.fromMap(
Map<dynamic, dynamic>.from(
yaml['flutter_launcher_icons'] ?? const {},
),
);
}