UpperBoundValidator class
Validator
which validates that a number input is less or equal
than upperBound.
- Annotations
-
- @Directive(selector: '[upperBound]', providers: [ExistingProvider.forToken(NG_VALIDATORS, UpperBoundValidator)], visibility: Visibility.all)
Constructors
- UpperBoundValidator(@Optional() NumberFormat? format)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- upperBound ↔ num?
-
Largest allowed value.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
AbstractControl control) → Map< String, dynamic> ? - Returns a map of the errors associated with this control.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
numberIsTooLargeMsg(
String upperBound) → String