copyWith method
Device
copyWith({
- Size? size,
- double? devicePixelRatio,
- String? name,
- double? textScale,
- Brightness? brightness,
- EdgeInsets? safeArea,
- DisplaySize? displaySize,
- DevicePlatform? platform,
- double? screenCornerRadius,
- DeviceType? type,
Implementation
Device copyWith({
Size? size,
double? devicePixelRatio,
String? name,
double? textScale,
Brightness? brightness,
EdgeInsets? safeArea,
DisplaySize? displaySize,
DevicePlatform? platform,
double? screenCornerRadius,
DeviceType? type,
}) {
return Device(
size: size ?? this.size,
devicePixelRatio: devicePixelRatio ?? this.devicePixelRatio,
name: name ?? this.name,
textScale: textScale ?? this.textScale,
brightness: brightness ?? this.brightness,
safeArea: safeArea ?? this.safeArea,
displaySize: displaySize ?? this.displaySize,
platform: platform ?? this.platform,
screenCornerRadius: screenCornerRadius ?? this.screenCornerRadius,
type: type ?? this.type,
);
}