RuleRef class final
A handle on the rule just written, so a reason can be attached to it.
Returned rather than taken as a parameter because .because(...) reads as
a sentence, and because a reason is only ever wanted on a small minority of
rules — the ones a user will be shown.
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
-
because(
String reason) → void - Explains why the rule forbids something.
-
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