Skip to content

Commit bf05cc2

Browse files
committed
refactoring: make field immutable
I ❤️ immutable objects!
1 parent dc3af38 commit bf05cc2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/view/instruments_screen.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ class InstrumentsScreen extends StatefulWidget {
1414
}
1515

1616
class _InstrumentData {
17-
String heading;
18-
String description;
19-
String name;
17+
const String heading;
18+
const String description;
19+
const String name;
2020

2121
_InstrumentData(this.heading, this.description, this.name);
2222
}

0 commit comments

Comments
 (0)