run<A extends Accessor, T> method

T run<A extends Accessor, T>(
  1. A accessor,
  2. A ctor(
    1. Recorder,
    2. Selection,
    3. List<Object>
    ),
  3. T body(
    1. A bound
    )
)

Runs body with accessor bound to this scope and fresh deps.

Implementation

T run<A extends Accessor, T>(
  A accessor,
  A Function(Recorder, Selection, List<Object>) ctor,
  T Function(A bound) body,
) {
  _deps = {};
  return body(bind(accessor, ctor));
}