copyWith method

Team copyWith({
  1. required int id,
  2. required String name,
  3. required Town? town,
})

Implementation

Team copyWith({
  required int id,
  required String name,
  required Town? town,
}) =>
    Team(
      id: id,
      name: name,
      town: town,
    );