RouteArgumentsCodec.callbacks constructor
Adapts callbacks to a codec. Encode must return JSON-compatible values; callback errors propagate to the existing history/restoration handling.
Implementation
const factory RouteArgumentsCodec.callbacks({
required Object? Function(Object?) encode,
required Object? Function(Object?) decode,
}) = _CallbackArgumentsCodec;