getPlatformInfo method

  1. @override
Future<OnDeviceAiPlatformInfo> getPlatformInfo()
override

What the native backend can do.

Implementation

@override
Future<OnDeviceAiPlatformInfo> getPlatformInfo() async {
  final map = await _invokeMap('getPlatformInfo');
  return OnDeviceAiPlatformInfo.fromMap(map ?? {'backend': 'unsupported'});
}