DataTableRow class Null safety Models
DataRow에 추가적인 데이터를 담기위해 커스텀한 모델입니다. CustomDataTable은 이 모델을 파라메터로 받아 DataRow를 그립니다.
- Annotations
Constructors
-
DataTableRow({required String id, required List<
DataTableCell> cells, bool selected = false, dynamic onSelectChanged(bool?)?, dynamic onLongPress()?}) -
DataTableRow.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
cells
→ List<
DataTableCell> -
셀 리스트를 담고있습니다.
@JsonKey(name: 'cells'), final
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- id → String
-
소 아이디나 UI상 id 정보가 필요한 경우 사용합니다.
@JsonKey(name: 'id'), final
- onLongPress → (dynamic Function?()?)
-
길게 누르고 있을때 호출되는 콜백함수입니다.
@JsonKey(ignore: true), final
- onSelectChanged → (dynamic Function?(bool?)?)
-
탭했을때 콜백되는 함수입니다.
@JsonKey(ignore: true), final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- selected ↔ bool
-
해당 Row가 선택되었는지를 나타냅니다.
@JsonKey(name: 'selected'), read / write
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object. [...]
override
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited