maybeChange<T> static method

bool maybeChange<T>(
  1. BuildContext context,
  2. Symbol key,
  3. T data
)

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

static bool maybeChange<T>(BuildContext context, Symbol key, T data) {
  return MultiModel.maybeChange(context, key, data);
}