Skip to content

Commit

Permalink
Fix assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
n-bernat committed Sep 7, 2024
1 parent 02279ab commit 720d84b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/app_preferences.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class Preference<T> extends ValueNotifier<T> {
initialValue is List<bool> ||
initialValue is List<int> ||
initialValue is List<double> ||
initialValue is Enum ||
(fromJson != null && toJson != null),
'You have to provide a `fromJson` and `toJson` functions for custom `Preference` types.',
),
Expand Down

0 comments on commit 720d84b

Please sign in to comment.