onSelected property

TrinaOnSelectedEventCallback? onSelected
final

onSelected can receive a response only if TrinaGrid.mode is set to TrinaGridMode.select .

When a row is tapped or the Enter key is pressed, the row information can be returned. When TrinaGrid is used for row selection, you can use TrinaGridMode.select . Basically, in TrinaGridMode.select, the onLoaded callback works when the current selected row is tapped or the Enter key is pressed. This will require a double tap if no row is selected. In TrinaGridMode.selectWithOneTap, the onLoaded callback works when the unselected row is tapped once.

Implementation

final TrinaOnSelectedEventCallback? onSelected;