copyWith method

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

Implementation

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