copyWith method
Implementation
Display copyWith({
String? resolution,
String? density,
String? screenSize,
String? refreshRate,
String? hdrCapabilities,
String? brightnessLevel,
String? screenTimeout,
String? orientation,
}) {
return Display(
resolution: resolution ?? this.resolution,
density: density ?? this.density,
screenSize: screenSize ?? this.screenSize,
refreshRate: refreshRate ?? this.refreshRate,
hdrCapabilities: hdrCapabilities ?? this.hdrCapabilities,
brightnessLevel: brightnessLevel ?? this.brightnessLevel,
screenTimeout: screenTimeout ?? this.screenTimeout,
orientation: orientation ?? this.orientation,
);
}