MaxValueRule class

Ensures that given num value is less or equal than given max.

If the value is not a num the rule will attempt to parse the value. If it fails ValidationError will be returned. Consider using IsNumberRule to provide more gradual error messages.

Inheritance

Constructors

MaxValueRule(num max, String message)

Properties

hashCode int
The hash code for this object.
no setterinherited
max num
final
message String
final
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.
override
validate(dynamic value) ValidationError?
override

Operators

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