Matchers class abstract

Matchers is an interface for various Matcher types.

Constructors

Matchers()

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

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

Static Methods

formData(FormData expected) → FormDataMatcher
formData matches against the expected FormData by comparing filename, contentType and length.
isA<T>() → IsAMatcher<T>
isA matches any value of type T.
listParam<T>(ListParam<T> expected) → ListParamMatcher<T>
listParam matches against the expected ListParam by comparing values and ListFormat.
pattern(String pattern, {bool? multiLine, bool? caseSensitive}) → RegExpMatcher
pattern matches value by utilizing RegExp through building it via String typed pattern, multiLine and caseSensitive. It is mainly used as a shorthand for matching via RegExp.
regExp(RegExp regExp) → RegExpMatcher
regExp matches value by utilizing RegExp through building it via RegExp typed regular expression.

Constants

any → const AnyMatcher
any matches any typed value.
boolean → const BooleanMatcher
boolean matches any bool alike value.
decimal → const DecimalMatcher
decimal matches any double alike value.
integer → const IntegerMatcher
integer matches any int alike value.
number → const NumberMatcher
number matches any int alike or double alike value.
strict → const StrictMatchers
strict is an accessor used to expose strict Matcher types that only match by pure, unprocessed value.
string → const StringMatcher
string matches any String value.