BoolAdapter class

A PreferenceAdapter implementation for storing and retrieving a bool.

Inheritance

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getValue(SharedPreferences preferences, String key) bool?
Retrieve a value associated with the key by using the preferences.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setValue(SharedPreferences preferences, String key, bool value) Future<bool>
Set a value for the key by using the preferences.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

instance → const BoolAdapter