setEnvironmentVariable method
Sets an environment variable.
Implementation
Future<void> setEnvironmentVariable(
String variableName, String variableValue) async {
try {
var parameters = {
'variableName': variableName,
'variableValue': variableValue
};
await _methodChannel.invokeMethod('setEnvironmentVariable', parameters);
} on PlatformException catch (e) {
logger.e('Plugin setEnvironmentVariable error: ${e.message}');
}
}