JsonCodec.withReviver constructor
JsonCodec.withReviver(Creates a JsonCodec
with the given reviver.
The reviver
function is called once for each object or list property that has been parsed during decoding. The key
argument is either the integer list index for a list property, the string map key for object properties, or null
for the final result.
Source
JsonCodec.withReviver(reviver(var key, var value)) : this(reviver: reviver);
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-convert/JsonCodec/JsonCodec.withReviver.html