DataType<T> class

A data type. Used for example in action arguments metadata.

Implementers

Constructors

DataType(DataTypeKind kind, { String registeredType, String name, String label, String description, bool annotated: false, String format, T defaultValue, bool nullable: false, Map<String, Object> features, bool optional: false, ProvidedMeta provided })
DataType.fromJson(Map<String, dynamic> json)
factory

Properties

annotated ↔ bool
Tells if a value of this type is annotated, i.e. wrapped by an instance of AnnotatedValue. Defaults to false.
read / write
defaultValue ↔ T
The default value (optional).
read / write
description ↔ String
The data type location description.
read / write
features → Map<String, Object>
The data type features as a map of names to values.
final
format ↔ String
The format (optional).
read / write
kind DataTypeKind
The data type kind.
final
kindValue → String
The string value of the data type kind, e.g. 'LIST'.
read-only
label ↔ String
The data type location label.
read / write
name ↔ String
The data type location name.
read / write
nullable ↔ bool
Tells if a value of this type may be null. The default is that a value must not be null, i.e. it is not nullable.
read / write
optional ↔ bool
The flag specifying if this type is optional. Defaults to false.
read / write
provided ProvidedMeta
The provided value specification. Defaults to null.
read / write
registeredType ↔ String
The optional corresponding registered data type name.
read / write
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

toJson() → Map<String, dynamic>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited

Static Methods

fromJsonBase(DataType type, Map<String, dynamic> json) DataType
@protected
fromJsonDataTypeKind(String jsonDataTypeKind) DataTypeKind

Constants

FEATURE_FORMAT → const String
The feature name for the format.
'format'