null safety
This commit is contained in:
@@ -20,7 +20,7 @@ class MyDataColumn {
|
||||
///
|
||||
/// The [label] argument must not be null.
|
||||
const MyDataColumn({
|
||||
@required this.label,
|
||||
required this.label,
|
||||
this.tooltip,
|
||||
this.numeric = false,
|
||||
this.onSort,
|
||||
@@ -40,7 +40,7 @@ class MyDataColumn {
|
||||
/// This is a longer description of the column heading, for cases
|
||||
/// where the heading might have been abbreviated to keep the column
|
||||
/// width to a reasonable size.
|
||||
final String tooltip;
|
||||
final String? tooltip;
|
||||
|
||||
/// Whether this column represents numeric data or not.
|
||||
///
|
||||
@@ -53,7 +53,7 @@ class MyDataColumn {
|
||||
/// If null, the column will not be considered sortable.
|
||||
///
|
||||
/// See [MyDataTable.sortColumnIndex] and [MyDataTable.sortAscending].
|
||||
final MyDataColumnSortCallback onSort;
|
||||
final MyDataColumnSortCallback? onSort;
|
||||
|
||||
bool get _debugInteractive => onSort != null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user