Inheritable<T>.mutable constructor

const Inheritable<T>.mutable({
  1. required ValueChanged<T> onMutate,
  2. required T value,
  3. Key key,
  4. Widget child,
})

Mutable variant of Inheritable, users are to provide onMutate to allow value to change.

However dependents have no say whether a supplied value should be updated or not.

Implementation

const factory Inheritable.mutable({
  required ValueChanged<T> onMutate,
  required T value,
  Key key,
  Widget child,
}) = _MutableInheritable<T>;