isSupported method
Implementation
@override
Future<Map<String, dynamic>> isSupported() async {
try {
final result = await methodChannel.invokeMethod<Map<dynamic, dynamic>>(
'isSupported',
);
return Map<String, dynamic>.from(result ?? {});
} on PlatformException catch (e) {
throw UnsupportedDeviceException(
e.message ?? 'Failed to check device support',
code: e.code,
details: e.details,
);
}
}