setEnvironmentVariable static method

Future<void> setEnvironmentVariable(
  1. String name,
  2. String value
)

Sets an environment variable.

Implementation

static Future<void> setEnvironmentVariable(String name, String value) async {
  try {
    await init();
    return _platform.ffmpegKitConfigSetEnvironmentVariable(name, value);
  } on PlatformException catch (e, stack) {
    print("Plugin setEnvironmentVariable error: ${e.message}");
    return Future.error("setEnvironmentVariable failed.", stack);
  }
}