menu
json_preferences package
documentation
json_preferences.dart
JsonPreference
key property
key property
dark_mode
light_mode
key
property
String
key
final
key
for saving preference
You must set the
key
or it will throw. This is a safety check to prevent different instances overwriting each other save.
Implementation
final String key;
json_preferences package
documentation
json_preferences
JsonPreference
key property
JsonPreference class