FlutterComputed<T> constructor

FlutterComputed<T>(
  1. T internalValue(), {
  2. bool autoDispose = false,
  3. String? debugLabel,
})

Create a new signal that is computed based on the values of other signals.

The returned computed signal is read-only, and its value is automatically updated when any signals accessed from within the callback function change.

Implementation

FlutterComputed(
  super.internalValue, {
  super.autoDispose,
  super.debugLabel,
});