SerializationHook class
Hook for transforming data during serialization/deserialization. Each hook has a unique id and is registered globally.
Constructors
Properties
-
canHandle
→ Future<
bool> Function(HHCtxI ctx)? -
final
- deserialize → Future Function(HHCtxI ctx)
-
final
- forStore → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
-
onError
→ Future<
void> Function(HHCtxI ctx)? -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serialize → Future Function(HHCtxI ctx)
-
final
- silentOnError → bool
-
final
- uid → String
-
finalinherited
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
-
getHook(
String id) → SerializationHook? - Get a registered hook by ID