MinValueRule class

Ensures that given num value is greater or equal than given min.

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

MinValueRule(num min, String message)

Properties

hashCode int
The hash code for this object.
no setterinherited
message String
final
min num
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