GridColumn constructor Null safety

GridColumn(
  1. {required String columnName,
  2. required Widget label,
  3. ColumnWidthMode columnWidthMode = ColumnWidthMode.none,
  4. bool visible = true,
  5. bool allowSorting = true,
  6. EdgeInsets autoFitPadding = const EdgeInsets.all(16.0),
  7. double minimumWidth = double.nan,
  8. double maximumWidth = double.nan,
  9. double width = double.nan,
  10. bool allowEditing = true}
)

Creates the GridColumn for SfDataGrid widget.

Implementation

GridColumn(
    {required this.columnName,
    required this.label,
    this.columnWidthMode = ColumnWidthMode.none,
    this.visible = true,
    this.allowSorting = true,
    this.autoFitPadding = const EdgeInsets.all(16.0),
    this.minimumWidth = double.nan,
    this.maximumWidth = double.nan,
    this.width = double.nan,
    this.allowEditing = true}) {
  _actualWidth = double.nan;
  _autoWidth = double.nan;
}