condition<T> method

ZenWorkerHandle condition<T>(
  1. ValueNotifier<T> obs,
  2. bool condition(
    1. T
    ),
  3. void callback(
    1. T
    )
)

Implementation

ZenWorkerHandle condition<T>(
  ValueNotifier<T> obs,
  bool Function(T) condition,
  void Function(T) callback,
) {
  return _createWorker(
      () => ZenWorkers.condition<T>(obs, condition, callback), 'condition');
}