DataRow.byIndex constructor Null safety

const DataRow.byIndex(
  1. {int? index,
  2. @Default(false) bool selected,
  3. Callback? onSelect,
  4. Callback? onDeselect,
  5. Callback? onLongPress,
  6. MaterialStateProperty? color,
  7. required List<DataCell> cells}
)

Implementation

const factory DataRow.byIndex({
  int? index,
  @Default(false) bool selected,
  Callback? onSelect,
  Callback? onDeselect,
  Callback? onLongPress,
  MaterialStateProperty? color,
  required List<DataCell> cells,
}) = DataRowByIndex;