proxy<T, L extends Listenable> static method

  1. @factory
GetProxy<T, L> proxy<T, L extends Listenable>(
  1. L listenable,
  2. T getValue(
    1. L
    )
)

Encapsulates a ProxyNotifier, using the provided callback to retrieve a value.

Implementation

@factory
static GetProxy<T, L> proxy<T, L extends Listenable>(L listenable, T Function(L) getValue) {
  return GetProxy._(_ProxyNotifier(listenable, getValue));
}