getPlatform static method

Future<String?> getPlatform()

Returns the platform name the library is loaded on.

Implementation

static Future<String?> getPlatform() async {
  try {
    await init();
    return _platform.ffmpegKitConfigGetPlatform();
  } on PlatformException catch (e, stack) {
    print("Plugin getPlatform error: ${e.message}");
    return Future.error("getPlatform failed.", stack);
  }
}