AdditionalPropertiesValidator class

Validates that a map contains no keys outside allowedProperties.

Corresponds to additionalProperties: false in JSON Schema. Keys not listed in allowedProperties cause validation to fail.

Implemented types

Constructors

AdditionalPropertiesValidator(Iterable<String> allowed)

Properties

allowedProperties Set<String>
The complete set of permitted property names.
final
hashCode int
The hash code for this object.
no setteroverride
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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