setGlobalVariable method

void setGlobalVariable({
  1. required dynamic value,
  2. required String variableName,
})

Sets the variable with the variableName to the value to be accessible by all running tests.

To set a variable so that it clears before the next test begins, use setTestVariable.

Implementation

void setGlobalVariable({
  required dynamic value,
  required String variableName,
}) =>
    _globalVariables[variableName] = value;