CallbackHealthCheck class final

Closure-based check (HealthCheck.of('queue', () async => ...)).

Implemented types

Constructors

CallbackHealthCheck(String name, FutureOr<HealthResult> _check())
A check named name running a callback.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
name → String
The check's name in /up/ready.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

check() → Future<HealthResult>
Runs the check.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited