dummyCallNativeCode method
Implementation
@protected
Future dummyCallNativeCode(
String method,
Map<String, dynamic> data,
Future<ic.ImageFile> Function() callback,
) async {
try {
// Invoke will work only on Web, otherwise it will execute callback
final result = await _channel.invokeMethod(method, data);
if (result is Map) {
return HcImageFileExtension.decode(result);
}
return null;
} on MissingPluginException catch (_) {
return await callback();
}
}