marginOnly method

TextComponentStyle marginOnly({
  1. int top = 0,
  2. int right = 0,
  3. int bottom = 0,
  4. int left = 0,
})

Returns a copy of this style with updated margin values.

Implementation

TextComponentStyle marginOnly({
  int top = 0,
  int right = 0,
  int bottom = 0,
  int left = 0,
}) => copyWith(
  margin: EdgeInsets.only(top: top, right: right, bottom: bottom, left: left),
);