copyWith method Null safety

UsernameGenData copyWith(
  1. {List<String>? names,
  2. List<String>? adjectives}
)

Implementation

UsernameGenData copyWith({
  List<String>? names,
  List<String>? adjectives,
}) {
  return UsernameGenData(
    names: names ?? this.names,
    adjectives: adjectives ?? this.adjectives,
  );
}