OutputGuard class abstract interface

Checks a plain answer of the model before it is shown; a verdict replaces it. Guards run on the model's plain answers only: never on streamed text still growing, on app-written replies or on an interrupted answer.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

check(String answer, GuardContext context) → FutureOr<GuardVerdict?>
A verdict when answer must not be shown, null when it may.
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