FileStorage class

Persist Cookies in the host file storage.

Implemented types

Constructors

FileStorage([String? dir])
FileStorage.test(String? dir, {bool shouldCreateDirectory = false})

Properties

dir String?
Where the cookie files should be saved.
final
hashCode int
The hash code for this object.
no setterinherited
readPreHandler ↔ (String? Function(Uint8List list)?)
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
writePreHandler ↔ (List<int> Function(String value)?)
getter/setter pair

Methods

delete(String key) Future<void>
Delete the cookie value with the given key in the storage.
override
deleteAll(List<String> keys) Future<void>
Delete all cookies in the storage (regardless the keys).
override
init(bool persistSession, bool ignoreExpires) Future<void>
Initialization for the Storage, e.g. prepare storage paths.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(String key) Future<String?>
Read cookie string from the given key in the storage.
override
toString() String
A string representation of this object.
inherited
write(String key, String value) Future<void>
Write cookie value with the given key to the storage.
override

Operators

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