forTarget method

Stream<T> forTarget(
  1. CapturableStreamTarget<T> target, {
  2. bool useCapture = false,
})

Gets a Stream for this event type, on the specified target.

  • useCapture is applicable only if the view event is caused by a DOM event.

Implementation

Stream<T> forTarget(CapturableStreamTarget<T> target, {bool useCapture = false}) {
  return _CapturableStream(target, _type, useCapture);
}