DataRow constructor Null safety

const DataRow(
  1. {Key? key,
  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({
  Key? key,
  @Default(false) bool selected,
  Callback? onSelect,
  Callback? onDeselect,
  Callback? onLongPress,
  MaterialStateProperty? color,
  required List<DataCell> cells,
}) = _DataRow;