computed<T> function

Computed<T> computed<T>(
  1. T getter(
    1. T? previousValue
    )
)

Creates a new computed value with the given getter function.

Implementation

@pragma('vm:prefer-inline')
@pragma('dart2js:tryInline')
@pragma('wasm:prefer-inline')
Computed<T> computed<T>(T Function(T? previousValue) getter) =>
    Computed<T>(getter);