update method

void update(
  1. T transform(
    1. T value
    )
)

Updates the value using the specified function of its value.

Implementation

@pragma('vm:prefer-inline')
@pragma('dart2js:tryInline')
void update(T Function(T value) transform) => value = transform(value);