SharedPreferencesUtils class

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

clear({String? key}) → void
getBool({String? key}) → Future<bool?>
getDouble({String? key}) → Future<double?>
getInt({String? key}) → Future<int?>
getString({String? key}) → Future<String?>
put({String? key, dynamic value}) → void
向本地sp文件中添加数据 key 存储key value 存储数据,仅支持String、int、double类型