addName method

void addName(
  1. String name
)

Implementation

void addName(String name) {
  _names ??= [];
  _names!.add(name);
}