SnapshotDecoder.from constructor
SnapshotDecoder.from(
- SnapshotDecoder other
Create a new, unsealed SnapshotDecoder containing the converters in the
decoder other.
Additional converters can be registered with SnapshotDecoder.register
and SnapshotDecoder.registerWithFormat. Before being able to use this
SnapshotDecoder, you'll need to seal it by calling SnapshotDecoder.seal.
Implementation
SnapshotDecoder.from(SnapshotDecoder other) {
other._converters.forEach((key, value) {
var l = _converters.putIfAbsent(key, () => []);
for (var c in value) {
l.add(c);
}
});
}