DataRow class Null safety

Implementers
Annotations
  • @freezed

Constructors

DataRow({Key? key, @Default(false) bool selected, Callback? onSelect, Callback? onDeselect, Callback? onLongPress, MaterialStateProperty? color, required List<DataCell> cells})
const
factory
DataRow.byIndex({int? index, @Default(false) bool selected, Callback? onSelect, Callback? onDeselect, Callback? onLongPress, MaterialStateProperty? color, required List<DataCell> cells})
const
factory
DataRow.fromJson(Map<String, Object?> json)
factory

Properties

cells → List<DataCell>
read-only, inherited
color → MaterialStateProperty?
read-only, inherited
copyWith → $DataRowCopyWith<DataRow>
@JsonKey(ignore: true), read-only, inherited
hashCode → int
The hash code for this object.
read-only, inherited
onDeselect → Callback?
read-only, inherited
onLongPress → Callback?
read-only, inherited
onSelect → Callback?
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
selected → bool
read-only, inherited

Methods

map<TResult extends Object?>(TResult $default(_DataRow value), {required TResult byIndex(DataRowByIndex value)}) → TResult
@optionalTypeArgs, inherited
mapOrNull<TResult extends Object?>(TResult? $default(_DataRow value)?, {TResult? byIndex(DataRowByIndex value)?}) → TResult?
@optionalTypeArgs, inherited
maybeMap<TResult extends Object?>(TResult $default(_DataRow value)?, {TResult byIndex(DataRowByIndex value)?, required TResult orElse()}) → TResult
@optionalTypeArgs, inherited
maybeWhen<TResult extends Object?>(TResult $default(Key? key, bool selected, Callback? onSelect, Callback? onDeselect, Callback? onLongPress, MaterialStateProperty? color, List<DataCell> cells)?, {TResult byIndex(int? index, bool selected, Callback? onSelect, Callback? onDeselect, Callback? onLongPress, MaterialStateProperty? color, List<DataCell> cells)?, required TResult orElse()}) → TResult
@optionalTypeArgs, inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
inherited
toString() → String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(Key? key, bool selected, Callback? onSelect, Callback? onDeselect, Callback? onLongPress, MaterialStateProperty? color, List<DataCell> cells), {required TResult byIndex(int? index, bool selected, Callback? onSelect, Callback? onDeselect, Callback? onLongPress, MaterialStateProperty? color, List<DataCell> cells)}) → TResult
@optionalTypeArgs, inherited
whenOrNull<TResult extends Object?>(TResult? $default(Key? key, bool selected, Callback? onSelect, Callback? onDeselect, Callback? onLongPress, MaterialStateProperty? color, List<DataCell> cells)?, {TResult? byIndex(int? index, bool selected, Callback? onSelect, Callback? onDeselect, Callback? onLongPress, MaterialStateProperty? color, List<DataCell> cells)?}) → TResult?
@optionalTypeArgs, inherited

Operators

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