decode method Null safety

  1. @mustCallSuper
  2. @override
void decode(
  1. KeyedArchive object
)
@mustCallSuper, override

Implementation

@mustCallSuper
@override
void decode(KeyedArchive object) {
  super.decode(object);

  final extensionKeys = object.keys.where((k) => k.startsWith("x-"));
  extensionKeys.forEach((key) {
    extensions[key] = object.decode(key);
  });
}