Taper<T> class
abstract
A converter between Objects and TapeData.
Tapers are usually added as extension methods on the TaperApi
, so
instead of writing TaperForUser()
, you can write taper.forUser()
and you
don't clutter the global namespace.
Tapers are also usually registerd at the registry like this:
tape.register({
...tapers.forDartCore, // This unpacks to many tapers.
0: taper.forUser(), // A taper for a specific type.
2: legacyTaper.forUser().v1, // This is a migration.
1: taper.forPet(),
});
- Implementers
Constructors
- Taper()
-
const
Properties
Methods
-
fromData(
TapeData data) → T -
Turns TapeData back into a value of type
T
. -
matches(
Object? value) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toData(
T value) → TapeData -
Turns the
value
into TapeData. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override