InMemoryPrintStore class
Keeps the library in memory: useful for demos and for apps that do not persist templates. Everything is lost when the app closes.
- Implemented types
Constructors
- InMemoryPrintStore({bool canManage = true})
Properties
Methods
-
delete(
PrintCollection collection, String itemId) → Future< void> -
override
-
load(
) → Future< PrintStoreSnapshot> -
override
-
loadDefaults(
{required List< PrintStoreItem> templates, required List<PrintStoreItem> paperFormats, required List<PrintStoreItem> categories}) → Future<PrintStoreSnapshot> -
Stores the default library once. Items that already exist are kept.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
save(
PrintCollection collection, PrintStoreItem item) → Future< void> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited