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