Enable no_default_cases lint (#91530)
This commit is contained in:
@@ -64,7 +64,7 @@ class _FilteredChildAnimationPageState extends State<FilteredChildAnimationPage>
|
||||
case FilterType.opacity: return 'Fading Child Animation';
|
||||
case FilterType.rotateTransform: return 'Transformed Child Animation';
|
||||
case FilterType.rotateFilter: return 'Matrix Filtered Child Animation';
|
||||
default: return 'Static Child';
|
||||
case null: return 'Static Child';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -70,8 +70,10 @@ void _setTestMode(_TestMode? mode) {
|
||||
case _TestMode.useCanvasTextLayout:
|
||||
useCanvasText = true;
|
||||
break;
|
||||
default:
|
||||
case _TestMode.useCanvasKit:
|
||||
case null:
|
||||
// Keep as null.
|
||||
break;
|
||||
}
|
||||
js_util.callMethod(
|
||||
html.window,
|
||||
|
||||
Reference in New Issue
Block a user