copyWith method

Display copyWith({
  1. String? resolution,
  2. String? density,
  3. String? screenSize,
  4. String? refreshRate,
  5. String? hdrCapabilities,
  6. String? brightnessLevel,
  7. String? screenTimeout,
  8. String? orientation,
})

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,
  );
}