update method

void update(
  1. String name,
  2. dynamic value
)

Update the state of a module

Implementation

void update(String name, dynamic value) {
  if (_stackMap[name] != null) {
    int index = _stackMap[name]!;
    _stateMap['$name@$index'] = value;
  } else {
    _stateMap[name] = value;
  }
}