subGet method

Substitution<V> subGet(
  1. GetV<V> newGet, {
  2. bool autoDispose = true,
})

Uses a different Get object to create a Substitution which can be passed into a GetScope.

Implementation

Substitution<V> subGet(GetV<V> newGet, {bool autoDispose = true}) {
  return sub(newGet.hooked, autoDispose: autoDispose);
}