PropertyType enum

Use with Property.type.

Inheritance
Available extensions

Values

byte → const PropertyType

size: 1-byte/8-bits

short → const PropertyType

size: 2-bytes/16-bits

char → const PropertyType

Use with Property.type to store int as 2 bytes (16-bit unsigned integer).

int → const PropertyType

size: 4-bytes/32-bits

float → const PropertyType

size: 4-bytes/32-bits

date → const PropertyType

Date stored with milliseconds precision as a Unix timestamp (64-bits).

DateTime values are stored in UTC and restored in local time.

dateNano → const PropertyType

Date stored with nanoseconds precision as a Unix timestamp, (64-bits).

DateTime values are stored in UTC and restored in local time. Note: Dart's DateTime only supports microsecond precision.

dateUtc → const PropertyType

Date stored with milliseconds precision as a Unix timestamp (64-bits).

DateTime values are stored and restored as UTC.

dateNanoUtc → const PropertyType

Date stored with nanoseconds precision as a Unix timestamp, (64-bits).

DateTime values are stored and restored as UTC. This is the recommended type for "high precision" DateTime properties. Note: Dart's DateTime only supports microsecond precision.

byteVector → const PropertyType

Use with Property.type to store a List<int> as byte (8-bit integer) array.

Integers stored in the list are truncated to their lowest 8 bits, interpreted as signed 8-bit integer with values in the range of -128 to +127.

For more efficiency use Int8List or Uint8List instead.

charVector → const PropertyType

Use with Property.type to store a List<int> as char (16-bit unsigned integer) array.

shortVector → const PropertyType

Use with Property.type to store a List<int> as short (16-bit integer) array.

Integers stored in the list are truncated to their lowest 16 bits, interpreted as signed 16-bit integer with values in the range of -32768 to +32767.

For more efficiency use Int16List or Uint16List instead.

intVector → const PropertyType

Use with Property.type to store a List<int> as int (32-bit integer) array.

Integers stored in the list are truncated to their lowest 32 bits, interpreted as signed 32-bit integer with values in the range of -2147483648 to 2147483647.

For more efficiency use Int32List or Uint32List instead.

floatVector → const PropertyType

Use with Property.type to store a List<double> as float (32-bit floating point) array.

Double values stored in the list are converted to the nearest single-precision value. Values read are converted to a double value with the same value.

For more efficiency use Float32List instead.

flex → const PropertyType

Use with Property.type to store flexible data as a FlexBuffer.

Supported Dart types (auto-detected):

  • Map<String, dynamic>, Map<String, Object?>, or Map<String, Object> for maps
  • List<dynamic>, List<Object?>, List<Object>, or List<Map<String, ...>> for lists

Supported Dart types (requires explicit annotation):

  • dynamic or Object? for arbitrary values (numbers, strings, lists, maps)

Flex properties can store values of type: integers, floating point values, strings, booleans, null, or nested lists and maps of those types.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<PropertyType>
A constant List of the values in this enum, in order of their declaration.