PactMatchers class

Constructors

PactMatchers()

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

ArrayContaining(List variants) Map
Allows heterogenous items to be matched within a list. Unlike EachLike which must be an array with elements of the same shape, ArrayContaining allows objects of different types and shapes.
DecimalLike(double example) Map
Matches a "Decimal" (double) value, for example, 0.84.
EachLike(dynamic example, {int min = 1, int? max}) Map
Matches that a list of elements are the same type.
email(dynamic example) Map
EqualTo(dynamic example) Map
Matches that the type and value is equal.
Includes(dynamic value) Map
Matches that value is contained within the value being tested.
IntegerLike(int example) Map
Matches a "Integer" (int) value, for example, 1.
Null() Map
Matches a null value
SomethingLike(dynamic example) Map
Matches that the type is equal, and does not care for the value.
Term(String regex, String example) Map
uuid(dynamic example) Map

Constants

EMAIL_REGEX → const String
UUID_REGEX → const String