addDomain method Null safety

void addDomain(
  1. String name
)

Implementation

void addDomain(String name) {
  domains ??= <String>[];
  domains!.add(name);
}