ValueMatcher class

Specifies the way to match a ProtobufWkt::Value.

Primitive values and ListValue are supported. StructValue is not supported and is always not matched. [#next-free-field: 8]

Constructors

ValueMatcher({bool? boolMatch, DoubleMatcher? doubleMatch, ListMatcher? listMatch, NullMatch? nullMatch, OrMatcher? orMatch, bool? presentMatch, StringMatcher? stringMatch})
ValueMatcher.fromJson(Map json_)

Properties

boolMatch bool?
If specified, a match occurs if and only if the target value is a bool value and is equal to this field.
getter/setter pair
doubleMatch DoubleMatcher?
If specified, a match occurs if and only if the target value is a double value and is matched to this field.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
listMatch ListMatcher?
If specified, a match occurs if and only if the target value is a list value and is matched to this field.
getter/setter pair
nullMatch NullMatch?
If specified, a match occurs if and only if the target value is a NullValue.
getter/setter pair
orMatch OrMatcher?
If specified, a match occurs if and only if any of the alternatives in the match accept the value.
getter/setter pair
presentMatch bool?
If specified, value match will be performed based on whether the path is referring to a valid primitive value in the metadata.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringMatch StringMatcher?
If specified, a match occurs if and only if the target value is a string value and is matched to this field.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited