copyWith method

IdOrKeyBean copyWith({
  1. int? id,
  2. String? key,
})

Implementation

IdOrKeyBean copyWith({int? id, String? key}) {
  return IdOrKeyBean(
    id: id ?? this.id,
    key: key ?? this.key,
  );
}