SharedPreferences class

Inheritance

Constructors

SharedPreferences(String _name, int _mode, {bool prefetch = false, dynamic useDeviceProtectedStorage = false})

Properties

channel MethodChannel
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
prefetch bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
useDeviceProtectedStorage → dynamic
final

Methods

edit() SharedPreferenceEditor
getAll() Map
getBoolean(String key, {bool? defaultValue}) FutureOr<bool>
getDouble(String key, {double? defaultValue}) FutureOr<double?>
getFloat(String key, {double? defaultValue}) FutureOr<double?>
getInt(String key, {int? defaultValue}) FutureOr<int?>
getString(String key, {String? defaultValue}) FutureOr<String?>
init() → dynamic
inherited
invokeMethod<T>(String method, [dynamic arguments]) Future<T?>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onMethodCall(MethodCall call) Future
inherited
registerMethodCallListener(String key, MethodCallListener listener) → void
inherited
toString() String
A string representation of this object.
inherited
unregisterMethodCallListener(String name) → void
inherited

Operators

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