copy method

AppState copy({
  1. String? key,
  2. dynamic value,
})

Copies a value into the store

Implementation

AppState copy({String? key, dynamic value}) {
  final Map<String?, dynamic> newData = Map<String?, dynamic>.of(this._data);
  newData[key] = value;

  return AppState(data: newData);
}