decodeIcoFile function
Decode a ICO formatted image from a file. If the platform does not support dart:io, null will be returned.
Implementation
Future<Image?> decodeIcoFile(String path, {int? frame}) async {
final bytes = await readFile(path);
if (bytes == null) {
return null;
}
return IcoDecoder().decode(bytes, frame: frame);
}