Retrieve a value associated with the key by using the preferences.
key
preferences
@override bool? getValue(preferences, key) => preferences.getBool(key);