copyWith method

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

Implementation

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