diff --git a/packages/devtools_app/lib/src/screens/app_size/app_size_controller.dart b/packages/devtools_app/lib/src/screens/app_size/app_size_controller.dart index 17c5b8cb4bc..237fdd156e4 100644 --- a/packages/devtools_app/lib/src/screens/app_size/app_size_controller.dart +++ b/packages/devtools_app/lib/src/screens/app_size/app_size_controller.dart @@ -37,7 +37,6 @@ enum DiffTreeType { case DiffTreeType.decreaseOnly: return 'Decrease Only'; case DiffTreeType.combined: - default: return 'Combined'; } } @@ -55,7 +54,6 @@ enum AppUnit { case AppUnit.mainOnly: return _mainNodeName; case AppUnit.entireApp: - default: return _entireAppNodeName; } } @@ -185,7 +183,6 @@ class AppSizeController { case AppUnit.deferredOnly: return _deferredDiffTreeMap; case AppUnit.entireApp: - default: return _diffTreeMap; } } @@ -205,8 +202,6 @@ class AppSizeController { return diffMap.decreaseOnly; case DiffTreeType.combined: return diffMap.combined; - default: - return diffMap.combined; } } @@ -221,7 +216,6 @@ class AppSizeController { case AppUnit.mainOnly: return _mainOnly; case AppUnit.entireApp: - default: return _entireApp; } } diff --git a/packages/devtools_app/lib/src/screens/inspector/layout_explorer/flex/utils.dart b/packages/devtools_app/lib/src/screens/inspector/layout_explorer/flex/utils.dart index af1b3e8d142..57868d1c6d1 100644 --- a/packages/devtools_app/lib/src/screens/inspector/layout_explorer/flex/utils.dart +++ b/packages/devtools_app/lib/src/screens/inspector/layout_explorer/flex/utils.dart @@ -197,7 +197,6 @@ extension AxisExtension on Axis { case Axis.horizontal: return 'Row'; case Axis.vertical: - default: return 'Column'; } } diff --git a/packages/devtools_app/lib/src/screens/inspector_v2/layout_explorer/flex/utils.dart b/packages/devtools_app/lib/src/screens/inspector_v2/layout_explorer/flex/utils.dart index 06a7f0d6feb..26792d0166a 100644 --- a/packages/devtools_app/lib/src/screens/inspector_v2/layout_explorer/flex/utils.dart +++ b/packages/devtools_app/lib/src/screens/inspector_v2/layout_explorer/flex/utils.dart @@ -197,7 +197,6 @@ extension AxisExtension on Axis { case Axis.horizontal: return 'Row'; case Axis.vertical: - default: return 'Column'; } } diff --git a/packages/devtools_app/lib/src/shared/charts/chart.dart b/packages/devtools_app/lib/src/shared/charts/chart.dart index 33884c4d9d5..b0b70697c92 100644 --- a/packages/devtools_app/lib/src/shared/charts/chart.dart +++ b/packages/devtools_app/lib/src/shared/charts/chart.dart @@ -698,10 +698,6 @@ class ChartPainter extends CustomPainter { ); canvas.drawPath(path, paintFirst); break; - default: - final message = 'Unknown symbol ${characteristics.symbol}'; - assert(false, message); - _log.shout(message); } } diff --git a/packages/devtools_app/lib/src/shared/charts/treemap.dart b/packages/devtools_app/lib/src/shared/charts/treemap.dart index 9789d872496..efdf3ef332c 100644 --- a/packages/devtools_app/lib/src/shared/charts/treemap.dart +++ b/packages/devtools_app/lib/src/shared/charts/treemap.dart @@ -123,8 +123,6 @@ class _TreemapState extends State { } } return pivotIndex; - default: - return -1; } } diff --git a/packages/devtools_app/lib/src/shared/primitives/utils.dart b/packages/devtools_app/lib/src/shared/primitives/utils.dart index 3bc7def40c5..1ff4f601e46 100644 --- a/packages/devtools_app/lib/src/shared/primitives/utils.dart +++ b/packages/devtools_app/lib/src/shared/primitives/utils.dart @@ -518,7 +518,6 @@ class TimeRange { case TimeUnit.microseconds: return '[${_start?.inMicroseconds} μs - ${end?.inMicroseconds} μs]'; case TimeUnit.milliseconds: - default: return '[${_start?.inMilliseconds} ms - ${end?.inMilliseconds} ms]'; } } diff --git a/packages/devtools_app/lib/src/shared/table/_table_row.dart b/packages/devtools_app/lib/src/shared/table/_table_row.dart index 0e7f468ed01..49998db09ab 100644 --- a/packages/devtools_app/lib/src/shared/table/_table_row.dart +++ b/packages/devtools_app/lib/src/shared/table/_table_row.dart @@ -365,7 +365,6 @@ class _TableRowState extends State> case ColumnAlignment.right: return Alignment.centerRight; case ColumnAlignment.left: - default: return Alignment.centerLeft; } } diff --git a/packages/devtools_app/lib/src/shared/table/table_data.dart b/packages/devtools_app/lib/src/shared/table/table_data.dart index a669787ec7a..e711a908dcd 100644 --- a/packages/devtools_app/lib/src/shared/table/table_data.dart +++ b/packages/devtools_app/lib/src/shared/table/table_data.dart @@ -175,7 +175,6 @@ extension ColumnDataExtension on ColumnData { case ColumnAlignment.right: return MainAxisAlignment.end; case ColumnAlignment.left: - default: return MainAxisAlignment.start; } } @@ -187,7 +186,6 @@ extension ColumnDataExtension on ColumnData { case ColumnAlignment.right: return TextAlign.right; case ColumnAlignment.left: - default: return TextAlign.left; } }