state property Null safety

Map<String, dynamic> state

Implementation

Map<String, dynamic> get state {
  return _state;
}
void state=(Map<String, dynamic> value)

Implementation

void set state(Map<String, dynamic>value) {
  final Map<String,dynamic> newState = {};
  _state.keys.forEach((k) => newState[k] = _state[k]);
  value.keys.forEach((k) => newState[k] = value[k]);
  var oldState = _state;
  _state = newState;
  emit('statechange', null, oldState );
}