TypeIdText class

Represents an item with type, ID, and text display value.

This class extends the concept of StringIdText by adding a type field, useful for categorizing items or representing polymorphic data structures.

Constructors

TypeIdText(String type, String id, String text)
Creates a new TypeIdText with the given type, id, and text.
TypeIdText.fromMap(Map<String, dynamic> obj)
Creates a TypeIdText from a map.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
The unique identifier for this item.
getter/setter pair
idAsLong int
Parses and returns the id as a long integer.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
The display text for this item.
getter/setter pair
type String
The type or category of this item.
getter/setter pair
typeId String
Returns a combined type-id string in the format "type-id}".
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this object to a JSON map.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

listFrom(List list) List<TypeIdText>
Converts a list of dynamic maps to a list of TypeIdText.