copyWith method

Country copyWith({
  1. required int id,
  2. required String? name,
})

Implementation

Country copyWith({
  required int id,
  required String? name,
}) =>
    Country(
      id: id,
      name: name ?? this.name,
    );