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

canManage → bool
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

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