packageName property

Future<String> packageName

Return the name of this application's package.

See: https://developer.android.com/reference/android/content/Context#getPackageName()

Implementation

static Future<String> get packageName async {
  assert(_platform.isAndroid);
  return await _channel.invokeMethod('getPackageName') as String;
}