getPackageName method

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

Implementation

@override
Future<String> getPackageName() async {
  final result = await methodChannel.invokeMethod<String>('getPackageName');
  if (result == null) {
    throw "getPackageName get null";
  }
  return result;
}