decode method Null safety

void decode(
  1. KeyedArchive object
)
override

Implementation

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

  availableValues = new List<String>.from(object.decode("enum"));
  defaultValue = object.decode("default");
  description = object.decode("description");
}