Skip to content

Commit

Permalink
perf(word): ⚡️ make class immutable
Browse files Browse the repository at this point in the history
  • Loading branch information
albertms10 committed Feb 4, 2024
1 parent 61abd65 commit f77d758
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/src/model/word.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import 'package:flutter/foundation.dart' show immutable;

import 'definition_entry_sense.dart';

@immutable
final class Word {
final String id;
final String word;
final List<DefinitionEntrySense>? senses;

Word({required this.id, required this.word, required this.senses});
const Word({required this.id, required this.word, required this.senses});
}

0 comments on commit f77d758

Please sign in to comment.