DataRowPlus class Null safety

Extension of standard DataRow, adds row level tap events. Also there're onSecondaryTap and onSecondaryTapDown which are not available in DataCells and which can be useful in Desktop settings when a reaction to the right click is required.

Inheritance
Annotations

Constructors

DataRowPlus({LocalKey? key, bool selected = false, ValueChanged<bool?>? onSelectChanged, MaterialStateProperty<Color?>? color, required List<DataCell> cells, VoidCallback? onTap, VoidCallback? onSecondaryTap, GestureTapDownCallback? onSecondaryTapDown})
Creates the configuration for a row of a DataTablePlus.
const
DataRowPlus.byIndex({int? index, bool selected = false, ValueChanged<bool?>? onSelectChanged, MaterialStateProperty<Color?>? color, required List<DataCell> cells, VoidCallback? onTap, VoidCallback? onSecondaryTap, GestureTapDownCallback? onSecondaryTapDown})

Properties

cells List<DataCell>
The data for this row.
finalinherited
color MaterialStateProperty<Color?>?
The color for the row.
finalinherited
hashCode int
The hash code for this object.
read-onlyinherited
key LocalKey?
A Key that uniquely identifies this row. This is used to ensure that if a row is added or removed, any stateful widgets related to this row (e.g. an in-progress checkbox animation) remain on the right row visually.
finalinherited
onLongPress GestureLongPressCallback?
Called if the row is long-pressed.
finalinherited
onSecondaryTap VoidCallback?
Row right click handler
final
onSecondaryTapDown GestureTapDownCallback?
Row right mouse down handler
final
onSelectChanged ValueChanged<bool?>?
Called when the user selects or unselects a selectable row.
finalinherited
onTap VoidCallback?
Row tap handler
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
selected bool
Whether the row is selected.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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