DurationMaxValidator class

Checks whether the Duration value does not last longer than the duration specified.

Supported types: Duration

Inheritance

Constructors

DurationMaxValidator({int days: 0, int hours: 0, int minutes: 0, int seconds: 0, int milliseconds: 0, int microseconds: 0, bool inclusive: false})

Properties

allowNull bool
null is allowed by default for every ConstraintValidator. [...]
read / write, inherited
argumentValues List
read / write, inherited
days int
final
defaultArgumentValues List
read / write, inherited
duration Duration
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
hours int
final
inclusive bool
final
message Function
read / write, override-getter
microseconds int
final
milliseconds int
final
minutes int
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
seconds int
final

Methods

initialize() → void
override
isValid(dynamic value, ValueContext context) bool
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
resetArgumentValues() → void
inherited
toString() String
Returns a string representation of this object.
inherited
validate(dynamic value, [ValueContext context]) bool
inherited

Operators

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