KeychainUtil class
安全存储工具类 提供一些常用的安全存储方法, 比如:读取、写入、删除, iOS存储到钥匙串中, Android存储到KeyStore中 使用示例
void example() {
KeychainUtil.write(key: 'key', value: 'value');
KeychainUtil.read(key: 'key');
KeychainUtil.delete(key: 'key');
}
Constructors
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 Properties
- storage → FlutterSecureStorage
-
获取安全存储实例
no setter