copyWith method
DeviceInfo
copyWith({
- DeviceIdentifier? identifier,
- String? name,
- EdgeInsets? rotatedSafeAreas,
- EdgeInsets? safeAreas,
- Path? screenPath,
- double? pixelRatio,
- CustomPainter? framePainter,
- Size? frameSize,
- Size? screenSize,
Implementation
DeviceInfo copyWith({
DeviceIdentifier? identifier,
String? name,
EdgeInsets? rotatedSafeAreas,
EdgeInsets? safeAreas,
Path? screenPath,
double? pixelRatio,
CustomPainter? framePainter,
Size? frameSize,
Size? screenSize,
}) {
return DeviceInfo(
identifier: identifier ?? this.identifier,
name: name ?? this.name,
rotatedSafeAreas: rotatedSafeAreas ?? this.rotatedSafeAreas,
safeAreas: safeAreas ?? this.safeAreas,
screenPath: screenPath ?? this.screenPath,
pixelRatio: pixelRatio ?? this.pixelRatio,
framePainter: framePainter ?? this.framePainter,
frameSize: frameSize ?? this.frameSize,
screenSize: screenSize ?? this.screenSize,
);
}