RegexMatcherRule class

Checks if the given input string matches the given regex.

Constructors

RegexMatcherRule(String fact, RegExp regex)
const

Properties

fact String
final
hashCode int
The hash code for this object.
no setterinherited
regex RegExp
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
execute() → RuleResponse<RegExpMatch>
inherited
generateValue(String fact) RegExpMatch?
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