decode method Null safety

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

Implementation

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

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