Matchers is an interface for various Matcher types.
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
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.