FileStore class final

Persists the bundle as one file per SDK key in directory (native platforms only).

Writes go to a temporary file that is then renamed over the old one, so a crash mid-write never leaves a truncated bundle behind. In Flutter apps, pass the application-support directory (path_provider), or use SharedPreferencesStore from package:nanoflags_flutter.

Implemented types

Constructors

FileStore(Directory directory)

Properties

directory → Directory
final
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
read(String id) → Future<String?>
The value stored under id, or null.
override
toString() → String
A string representation of this object.
inherited
write(String id, String value) → Future<void>
Replaces the value stored under id.
override

Operators

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