copyWith method

PositionData copyWith({
  1. Dim? top,
  2. Dim? right,
  3. Dim? bottom,
  4. Dim? left,
  5. int? zIndex,
  6. Visibility? visibility,
  7. Overflow? overflow,
  8. Map<String, String>? extra,
})

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 ?? {}),
);