copyWith method

Positioned copyWith({
  1. Key? key,
  2. double? left,
  3. double? top,
  4. double? right,
  5. double? bottom,
  6. double? width,
  7. double? height,
  8. Widget? child,
})

Implementation

Positioned copyWith({
  Key? key,
  double? left,
  double? top,
  double? right,
  double? bottom,
  double? width,
  double? height,
  Widget? child,
}) {
  return Positioned(
    key: key ?? this.key,
    left: left ?? this.left,
    top: top ?? this.top,
    right: right ?? this.right,
    bottom: bottom ?? this.bottom,
    width: width ?? this.width,
    height: height ?? this.height,
    child: child ?? this.child,
  );
}