RecordType class

A record type. This type requires a list of record field types. A value of this type has to be an instance of Map<String, dynamic> with elements corresponding to the field names and values.

Inheritance
  • Object
  • DataType<Map<String, dynamic>>
  • RecordType

Constructors

RecordType(List<DataType> fields, { RecordType baseType, bool inheritationApplied: false })
RecordType.fromJson(Map<String, dynamic> json)
factory

Properties

baseType RecordType
The base record type.
final
fields → List<DataType>
The field types.
final
inheritationApplied → bool
The flag that tells if inheritance has been applied to this type.
final
annotated ↔ bool
Tells if a value of this type is annotated, i.e. wrapped by an instance of AnnotatedValue. Defaults to false.
read / write, inherited
defaultValue ↔ Map<String, dynamic>
The default value (optional).
read / write, inherited
description ↔ String
The data type location description.
read / write, inherited
features → Map<String, Object>
The data type features as a map of names to values.
final, inherited
format ↔ String
The format (optional).
read / write, inherited
hashCode → int
The hash code for this object.
read-only, inherited
kind DataTypeKind
The data type kind.
final, inherited
kindValue → String
The string value of the data type kind, e.g. 'LIST'.
read-only, inherited
label ↔ String
The data type location label.
read / write, inherited
name ↔ String
The data type location name.
read / write, inherited
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, inherited
optional ↔ bool
The flag specifying if this type is optional. Defaults to false.
read / write, inherited
provided ProvidedMeta
The provided value specification. Defaults to null.
read / write, inherited
registeredType ↔ String
The optional corresponding registered data type name.
read / write, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getFieldType(String fieldName) DataType
toJson() → Map<String, dynamic>
override
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