DataTableColumn class Null safety Models
DataColumn에 추가적인 데이터를 담기위해 커스텀한 모델입니다. CustomDataTable은 이 모델을 파라메터로 받아 DataColumn을 그립니다.
- Annotations
Constructors
- DataTableColumn({required int id, required String text, required double width, bool showEditIcon = false, dynamic onSort(int, bool)?})
-
DataTableColumn.fromJson(Map<
String, dynamic> json) -
factory
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- id ↔ int
-
소 아이디나 UI상 id 정보가 필요한 경우 사용합니다.
@JsonKey(name: 'id'), read / write
- onSort ↔ (dynamic Function?(int, bool)?)
-
정렬기능이 필요할 경우 사용합니다.
@JsonKey(ignore: true), read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- showEditIcon ↔ bool
-
수정 아이콘이 있어야하는 칼럼에는 true로 설정합니다.
DataTableCell에도 이 값을 동일하게 주어야합니다.
@JsonKey(name: 'showEditIcon'), read / write
- text ↔ String
-
칼럼에 표시되는 텍스트입니다.
@JsonKey(name: 'text'), read / write
- width ↔ double
-
칼럼의 가로 길이가 필요합니다.
@JsonKey(name: 'width'), 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