refactor(tests): replace 'final' with 'const' for improved performance in various test files

This commit is contained in:
mso7nueh
2025-12-08 11:32:40 +03:00
parent c2a506cdbf
commit 746d366c18
56 changed files with 199 additions and 254 deletions

View File

@@ -12,7 +12,7 @@ void main() {
home: Scaffold(
body: ChipGroup(
selectedChipIndex: 0,
chipsLabelList: ['All', 'Recipes', 'Diets'],
chipsLabelList: const ['All', 'Recipes', 'Diets'],
setSelectedChipIndex: (index) {},
),
),
@@ -29,7 +29,7 @@ void main() {
home: Scaffold(
body: ChipGroup(
selectedChipIndex: 0,
chipsLabelList: ['All', 'Recipes', 'Diets', 'Plans'],
chipsLabelList: const ['All', 'Recipes', 'Diets', 'Plans'],
setSelectedChipIndex: (index) {},
),
),
@@ -51,7 +51,7 @@ void main() {
home: Scaffold(
body: ChipGroup(
selectedChipIndex: 0,
chipsLabelList: ['All', 'Recipes', 'Diets'],
chipsLabelList: const ['All', 'Recipes', 'Diets'],
setSelectedChipIndex: (index) {
selectedIndex = index;
},
@@ -73,7 +73,7 @@ void main() {
home: Scaffold(
body: ChipGroup(
selectedChipIndex: 0,
chipsLabelList: [],
chipsLabelList: const [],
setSelectedChipIndex: (index) {},
),
),