TCsvRow class

Represents a single editable row of data in TCsvEditor.

Constructors

TCsvRow({String? id, Map<String, dynamic>? values, Map<String, String>? errors})

Properties

errors Map<String, String>
Validation error messages keyed by TCsvColumn.key.
final
hashCode int
The hash code for this object.
no setterinherited
id String
Unique internal ID for widget keying and animations.
final
isValid bool
Whether this row has no validation errors.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
values Map<String, dynamic>
Cell values keyed by TCsvColumn.key.
final

Methods

clone({bool newId = true}) TCsvRow
Creates a clone of this row with an optional new ID.
getValue(String key) → dynamic
Gets a cell value by column key.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setValue(String key, dynamic value) → void
Sets a cell value by column key.
toMap() Map<String, dynamic>
Exports row values as a clean map.
toString() String
A string representation of this object.
override
validate(List<TCsvColumn> columns) → void
Validates all cells in this row against column schemas.

Operators

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