encode method Null safety

void encode(
  1. KeyedArchive object
)
override

Implementation

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

  requirements!.forEach((key, value) {
    object.encode(key, value);
  });
}