condition<T> static method

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

Implementation

static ZenWorkerHandle condition<T>(
  ValueNotifier<T> obs,
  bool Function(T) condition,
  void Function(T) callback,
) {
  return watch<T>(obs, callback,
      type: WorkerType.condition, condition: condition);
}