getPackageName method

Future<String?> getPackageName()

Returns FlutterFFmpeg package name.

Implementation

Future<String?> getPackageName() async {
  try {
    var result = await _methodChannel.invokeMethod('getPackageName');
    return result['packageName'];
  } on PlatformException catch (e, stack) {
    logger.e('Plugin getPackageName error: ${e.message}');
    return Future.error('getPackageName failed.', stack);
  }
}