sub method

Substitution<V> sub(
  1. V newListenable, {
  2. bool autoDispose = true,
})

Uses a Listenable (of the Get object's representation type) to create a Substitution which can be passed into a GetScope.

Implementation

Substitution<V> sub(V newListenable, {bool autoDispose = true}) {
  return _SubEager(_get.hooked, newListenable, autoDispose: autoDispose);
}