annotations.basic library

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

Classes

Blank
Checks that the annotated string is null or the length is not greater than 0.
IsEmpty
Checks whether the annotated element is empty or null
IsFalse
The annotated element must be false or null
IsTrue
The annotated element must be true
NotBlank
Checks that the annotated string is not null and the trimmed length is greater than 0.
NotEmpty
Checks whether the annotated element is not null nor empty
NotNull
Checks whether the annotated element is not null
Null
Checks whether the annotated element is null
Type
Checks whether the annotated element is of the declared type

Constants

blank → const Blank
Blank annotation using default values
const Blank()
isEmpty → const IsEmpty
IsEmpty annotation using default values
const IsEmpty()
isFalse → const IsFalse
IsFalse annotation using default values
const IsFalse()
isNull → const Null
Null annotation using default values
const Null()
isTrue → const IsTrue
IsTrue annotation using default values
const IsTrue()
notBlank → const NotBlank
NotBlank annotation using default values
const NotBlank()
notEmpty → const NotEmpty
NotEmpty annotation using default values
const NotEmpty()
notNull → const NotNull
NotNull annotation using default values
const NotNull()

Properties

basicAnnotations → List<Object>
final