marginOnly method

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

Implementation

DefineMAddButtonModifier marginOnly({
  double? left,
  double? top,
  double? right,
  double? bottom,
}) {
  return this.copyWith(
    valueMargin: (this.valueMargin ?? EdgeInsets.zero).copyWith(
      left: left ?? this.valueMargin?.left,
      right: right ?? this.valueMargin?.right,
      top: top ?? this.valueMargin?.top,
      bottom: bottom ?? this.valueMargin?.bottom,
    ),
  );
}