ValueTypeMatcher constructor

const ValueTypeMatcher({
  1. List<Object> path = const ['type'],
  2. String? value,
})

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

Implementation

const ValueTypeMatcher({this.path = const ['type'], this.value});