MatchOnePatternRule class

Checks if the given input string matches at least one pattern from the given list.

Constructors

MatchOnePatternRule(String fact, {required Iterable<String> patterns})
const

Properties

fact String
final
hashCode int
The hash code for this object.
no setterinherited
patterns Iterable<String>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

apply() → RuleResponse<RegExpMatch>
An alias for the execute function.
inherited
build() → Rule<String, RegExpMatch>
execute() → RuleResponse<RegExpMatch>
inherited
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