maybeChangeModel<T> method

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

Optionally change the data of the model with the given key. Ignores if the model is read-only.

  • T The type of the data.
  • context The build context.
  • key The data key.
  • data The new data.

Implementation

void maybeChangeModel<T>(Symbol key, T value) {
  Model.maybeChange<T>(this, key, value);
}