decode method Null safety

void decode(
  1. KeyedArchive object
)
override

Implementation

void decode(KeyedArchive object) {
  super.decode(object);

  object.keys.forEach((key) {
    final req = new List<String>.from(object.decode(key));
    requirements![key] = req;
  });
}