copyWith method

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

Implementation

DynamicEdgeInsets copyWith({
  Length? top,
  Length? bottom,
  Length? left,
  Length? right,
}) {
  return DynamicEdgeInsets.only(
    top: top ?? this.top,
    bottom: bottom ?? this.bottom,
    left: left ?? this.left,
    right: right ?? this.right,
  );
}