copyWith method

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

Implementation

Type copyWith({
  required int id,
  required String name,
}) =>
    Type(
      id: id,
      name: name,
    );