rows method

List<Map<String, Object?>> rows({
  1. bool includeNonPersistent = false,
})

Maps selected rows from the current dataset view to immutable row values.

This intentionally returns value snapshots instead of internal records so application code can use selected rows for export and batch actions without mutating dataset internals. Like normal dataset navigation, this method is view-scoped and respects the current filter/sort view.

Implementation

List<Map<String, Object?>> rows({bool includeNonPersistent = false}) {
  return _dataSet._selectionCoordinator.selectedRows(
    includeNonPersistent: includeNonPersistent,
  );
}