RouteArgumentsCodec.callbacks constructor

const RouteArgumentsCodec.callbacks({
  1. required Object? encode(
    1. Object?
    ),
  2. required Object? decode(
    1. Object?
    ),
})

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;