Computed<T> constructor

const Computed<T>(
  1. StateBuilder<T> stateBuilder, {
  2. EqualityComparer<T>? equalityComparer,
})

Creates a derived state which combine the current state of other parts and allows any widget to be rebuilt when the underlaying value changes.

Implementation

const Computed(
  this.stateBuilder, {
  EqualityComparer<T>? equalityComparer,
}) : super(equalityComparer);