DataRowByIndex constructor Null safety

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

Implementation

const factory DataRowByIndex(
    {final int? index,
    final bool selected,
    final Callback? onSelect,
    final Callback? onDeselect,
    final Callback? onLongPress,
    final MaterialStateProperty? color,
    required final List<DataCell> cells}) = _$DataRowByIndex;