modify method

void modify(
  1. ModifyValue<T> modify
)

user do modify value. recommended return new instance (use copyWith if is possible).

Implementation

void modify(ModifyValue<T> modify) => _setValueAndNotify(modify(value));