DataColumn<T> constructor

DataColumn<T>({
  1. required String label,
  2. required double width,
  3. String text(
    1. T item
    )?,
  4. Widget builder(
    1. T item
    )?,
})

Implementation

DataColumn({
  required this.label,
  required this.width,
  this.text,
  this.builder,
}) : assert(text != null || builder != null);