transform method Null safety

void transform(
  1. T setter(
    1. T
    )
)

Implementation

void transform(T Function(T) setter) {
  value = setter(this._currentValue);
}