copyWith method

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

Creates a copy with the specified values replaced.

Implementation

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