changeModel<T> method

void changeModel<T>(
  1. Symbol key,
  2. T value
)

Implementation

void changeModel<T>(Symbol key, T value) {
  assert(state.mounted, 'State is not mounted');
  Model.change<T>(state.context, key, value);
}