annotations.number library

To use, import package:validations/annotations/number.dart

Classes

Negative
Checks if the element is strictly negative. Zero values are considered invalid.
NegativeOrZero
Checks if the element is negative or zero.
Positive
Checks if the element is strictly positive. Zero values are considered invalid.
PositiveOrZero
Checks if the element is positive or zero.

Constants

negative → const Negative
Negative annotation using default values
const Negative()
negativeOrZero → const NegativeOrZero
NegativeOrZero annotation using default values
const NegativeOrZero()
positive → const Positive
Positive annotation using default values
const Positive()
positiveOrZero → const PositiveOrZero
PositiveOrZero annotation using default values
const PositiveOrZero()

Properties

numberAnnotations → List<Object>
final