copyWith method
Copy position attributes.
Implementation
PositionData copyWith({
Dim? top,
Dim? right,
Dim? bottom,
Dim? left,
int? zIndex,
Visibility? visibility,
Overflow? overflow,
Map<String, String>? extra,
}) => PositionData(
top: top ?? this.top,
right: right ?? this.right,
bottom: bottom ?? this.bottom,
left: left ?? this.left,
zIndex: zIndex ?? this.zIndex,
visibility: visibility ?? this.visibility,
overflow: overflow ?? this.overflow,
extra: (this.extra ?? {}).combine(extra ?? {}),
);