PollerFromHandlers<T> constructor

PollerFromHandlers<T>({
  1. required void onResult(
    1. T
    ),
  2. Function? onError,
  3. String? debugLabel,
  4. required Future<Vote<T>> poll(),
  5. Duration? delay,
})

Implementation

PollerFromHandlers({
  required this.onResult,
  this.onError,
  this.debugLabel,
  required Future<Vote<T>> Function() poll,
  this.delay,
}) : _poll = poll;