copyWith method

Device copyWith({
  1. String? id,
  2. String? name,
  3. DeviceOs? os,
  4. String? platform,
  5. DeviceState? state,
  6. DeviceType? type,
})

Implementation

Device copyWith({
  String? id,
  String? name,
  DeviceOs? os,
  String? platform,
  DeviceState? state,
  DeviceType? type,
}) {
  return Device(
    id: id ?? this.id,
    name: name ?? this.name,
    os: os ?? this.os,
    platform: platform ?? this.platform,
    state: state ?? this.state,
    type: type ?? this.type,
  );
}