watchError method

void Function() watchError(
  1. ZenController controller,
  2. void callback(
    1. Object?
    ), {
  3. String? name,
})

Convenience method for watching only error state

Implementation

void Function() watchError(
        ZenController controller, void Function(Object?) callback,
        {String? name}) =>
    watch(controller, onError: callback, name: name);