bind<T> method

StreamSubscription<T> bind<T>(
  1. StreamedAction<T> action,
  2. void onValue(
    1. T value
    ), {
  3. void onError(
    1. Object error
    )?,
})

bind ui StreamedAction's

Implementation

StreamSubscription<T> bind<T>(
  StreamedAction<T> action,
  void Function(T value) onValue, {
  void Function(Object error)? onError,
}) =>
    subscribe<T>(action.stream, onValue, onError: onError);