RebuildRule<T>.of constructor

RebuildRule<T>.of(
  1. ValueListenable<T> controller
)

The rule the call styles use for controller: its value, everything a reader can see of it, and the part of that beside the value — for an InfiniteQueryController, the paging flags.

An adapter over the binding's controllers takes this one rather than spelling the parts out, so whatever a later version of the binding shows beside a controller's value is in its readers' rule too. It reads controller and nothing more: the caller still listens to it and disposes it.

Implementation

RebuildRule.of(ValueListenable<T> controller)
    : this(
        value: () => controller.value,
        observedState: () => observedStateOf(controller),
        beside: () => besideOf(controller),
      );