ChainedHook class Mapping Hooks

A MappingHook that will chain multiple other hooks.

Inheritance

Constructors

ChainedHook(List<MappingHook> hooks)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
hooks List<MappingHook>
The provided MappingHook. These will be applied for both encoding and serialization in the following order: first.beforeDecode -> second.beforeDecode -> ... -> decode -> ... -> second.afterDecode -> first.afterDecode.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

afterDecode(dynamic value) → dynamic
override
afterEncode(dynamic value) → dynamic
override
beforeDecode(dynamic value) → dynamic
override
beforeEncode(dynamic value) → dynamic
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
wrapDecode<T>(dynamic value, T fn(dynamic value), MapperContainer container) → T
inherited
wrapEncode<T>(T value, dynamic fn(T value), MapperContainer container) → dynamic
inherited

Operators

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