ValueTypeMatcher class final Typed Data

A TypeMatcher that matches a dictionary or document if it contains a fixed value at a fixed path.

Inheritance
Annotations
  • @experimental

Constructors

ValueTypeMatcher({List<Object> path = const ['type'], String? value})
Creates a TypeMatcher that matches a dictionary or document if it contains a fixed value at a fixed path.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
path List<Object>
The path to the value to match.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String?
The value that the dictionary or document must contain at path to match.
final

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