copyWith method

  1. @override
ExtendedPhysicalDisplayData copyWith({
  1. Size? physicalSize,
  2. Size? resolution,
  3. bool? isPrimary,
  4. double? devicePixelRatio,
})

method to create updated copy of ExtendedPhysicalDisplayData

Implementation

@override
ExtendedPhysicalDisplayData copyWith({
  Size? physicalSize,
  Size? resolution,
  bool? isPrimary,
  double? devicePixelRatio,
}) {
  return ExtendedPhysicalDisplayData(
    physicalSize: physicalSize ?? this.physicalSize,
    resolution: resolution ?? this.resolution,
    isPrimary: isPrimary ?? this.isPrimary,
    devicePixelRatio: devicePixelRatio ?? this.devicePixelRatio,
  );
}