ConsumableStore class

A store of consumable items.

This is a development prototype tha stores consumables in the shared preferences. Do not use this in real world apps.

Constructors

ConsumableStore()

Properties

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
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

consume(String id) Future<void>
Consumes a consumable with ID id from the store.
load() Future<List<String>>
Returns the list of consumables from the store.
save(String id) Future<void>
Adds a consumable with ID id to the store.