chest_flutter library

Classes

BytesTapeData
BytesTaper<T>
A Taper that turns a value into bytes.
Chest<T>
A container for a value that's persisted beyond the app's lifetime.
InteriorReference<T>
A reference to an interior part of a Chest.
MapTapeData
MapTaper<T>
A Taper that turns a value into a Map<Object?, Object?>.
Reference<T>
ReferenceBuilder
ReferencesBuilder
tape
Main API for the tape part.
TapeData
An intermediary representation of data. Tapers produce this when they serialize Objects.
TapeKey
Taper<T>
A converter between Objects and TapeData.
TaperForMutableRectangle<T extends num>
TaperForPoint<T extends num>
TaperForRectangle<T extends num>
TaperForSet<T>
TaperForUint8List
TaperNamespace
TapersNamespace
Version

Extensions

ReferenceToBool on Reference<bool>
ReferenceToDateTime on Reference<DateTime>
ReferenceToDuration on Reference<Duration>
ReferenceToList on Reference<List<T>>
ReferenceToMap on Reference<Map<K, V>>
ReferenceToMutableRectangle on Reference<MutableRectangle<T>>
ReferenceToPoint on Reference<Point<T>>
ReferenceToRectangle on Reference<Rectangle<T>>
ReferenceToSet on Reference<Set<T>>
TaperForBool on TaperNamespace
A bool is encoded using one byte that's either 1 for true or 0 for false.
TaperForColor on TaperNamespace
TaperForDateTime on TaperNamespace
DateTimes are simply encoded as maps.
TaperForDouble on TaperNamespace
doubles are 64-bit floating point number in the DartVM.
TaperForDuration on TaperNamespace
Durations are simply encoded using maps.
TaperForInt on TaperNamespace
ints are 64-bit integers in the DartVM.
TaperForList on TaperNamespace
Lists are encoded as a map from indizes to values. That makes random access to items possible. Inserting items in the middle of the list is quite expensive, but that's okay because it's typically not done that often.
TaperForMap on TaperNamespace
Maps are obviously encoded as maps. No surprise there.
TaperForMaterialColor on TaperNamespace
TaperForMutableRectangleExtension on TaperNamespace
TaperForNull on TaperNamespace
Null is encoded to zero bytes, because a null value carries no information (it's the initial type in the type category).
TaperForPointExtension on TaperNamespace
TaperForRectangleExtension on TaperNamespace
TaperForSetExtension on TaperNamespace
Sets are encoded as maps from elements to Null.
TaperForString on TaperNamespace
Strings are utf8-encoded.
TaperForThemeMode on TaperNamespace
TaperForUint8ListExtension on TaperNamespace
TapersForDartCore on TapersNamespace
TapersForDartMath on TapersNamespace
TapersForDartTypedData on TapersNamespace
TapersForFlutter on TapersNamespace

Constants

doNotTape → const Object
taper → const TaperNamespace
tapers → const TapersNamespace
v0 → const Version
v1 → const Version
v2 → const Version
v3 → const Version
v4 → const Version

Properties

registry → Registry
The registry contains all registered Tapers. It makes these tasks possible:
final

Functions

initializeChest() Future<void>