Fort class
Constructors
- Fort()
-
factory
Properties
Methods
-
box<
T> (String boxKey) → Box< T> - Opens a box and returns an open box
-
clearBox(
String boxKey) → Future< void> - Clear individual box Box Will remain open after being cleared
-
clearFort(
) → Future< void> - Clears everything inside the Fort except Does not clear Boxes that contain the GENERAL_KEY Boxes will remain open even after the Fort is cleared so they can still be access synchronously
-
deleteBox<
T> (String boxKey) → Future< void> - Clear individual box Box will be closed after it is cleared
-
deleteFort(
) → Future< void> - Deletes everything inside the Fort Boxes will be closed after they are cleared Deletes boxes that are reference from the GENERAL_KEY
-
getStoreListener<
T> (String boxKey, [List? listenerKeys]) → ValueListenable< Box< T> > - Returns an open store or null
-
init(
) → Future< void> - Iniitalizes the fort
-
isOpen<
T> (String boxKey) → bool - Returns if box is open
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
register<
T> (String key, TypeAdapter< T> adapter) → Future<Box< T> > - Registers a type adapter to a key and opens the box for the objects. Boxes must initlaly be registered before used
-
registerAdapter<
T> (TypeAdapter< T> adapter) → void -
Must be called after
init
-
storeBox<
T> (String boxKey) → Future< Box< T> > - Opens a box and returns an open box
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- GENERAL_KEY → const String
- LAZY_KEY → const String