null safety

This commit is contained in:
phyothandar
2021-09-10 15:22:11 +06:30
parent 51a5fe0740
commit c90661b262
24 changed files with 194 additions and 193 deletions

View File

@@ -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;
}