getModelName method

  1. @override
Future<String> getModelName()
override

Implementation

@override
Future<String> getModelName() async {
  try {
    return await methodChannel.invokeMethod<String>('getModelName') ?? 'invalid';
  } on MissingPluginException catch (_) {
    throw MissingPluginException('No method found for getModelName() on channel');
  }
}