copyWith method
Device
copyWith({
- String? id,
- String? name,
- DeviceOs? os,
- String? platform,
- DeviceState? state,
- 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,
);
}