model_types library

The library exposing all base ModelType classes defined in this package.

Import this library if you need to access their type definitions, otherwise use the shorthands defined in M when using them in an ImmutableModel.

Classes

ModelBool
A model for a bool. This class needs no validator.
ModelBoolList
ModelDateTime
A model for a validated DateTime
ModelDateTimeList
A model for a validated list of DateTimes.
ModelDouble
A model for a validated double.
ModelDoubleList
A model for a validated list of doubles.
ModelEmail
A model of a valid email address string
ModelEnum<E>
A model for an enum.
ModelEnumList<E>
ModelInner
A model for a validated map between field label Strings and other ModelType models.
ModelInnerList
A model for a list of ModelInners.
ModelInt
A model for a validated int.
ModelIntList
ModelPassword
A model of a valid password string.
ModelString
A model for a validated String.
ModelStringList
A model for a validated list of Strings.
ModelType<M extends ModelType<M, V>, V>
An abstract base class that defines common model attributes and behaviors.
ModelValue<M extends ModelValue<M, V>, V>
An abstract class for a ModelType that holds, directly, a value V instead of a some underlying data structure.
ModelValueList<M extends ModelValue<M, dynamic>>

Mixins

ValueType<M extends ModelValue<M, V>, V>
A mixin that provides the relevant overrides when defining a value type class that wraps its own validation.