SharedPreferences class abstract

键值对存储接口定义

Constructors

SharedPreferences()

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

clear() Future<void>
getBool(String key) Future<bool?>
getDouble(String key) Future<double?>
getInt(String key) Future<int?>
getString(String key) Future<String?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
putBool(String key, bool value) Future<void>
putDouble(String key, double value) Future<void>
putInt(String key, int value) Future<void>
putString(String key, String value) Future<void>
remove(String key) Future<void>
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

getInstance() SharedPreferences