copyWith method

ShadPosition copyWith({
  1. double? top,
  2. double? left,
  3. double? right,
  4. double? bottom,
})

Implementation

ShadPosition copyWith({
  double? top,
  double? left,
  double? right,
  double? bottom,
}) {
  return ShadPosition(
    top: top ?? this.top,
    left: left ?? this.left,
    right: right ?? this.right,
    bottom: bottom ?? this.bottom,
  );
}