paddingOnly method

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

Returns a copy of this style with updated padding values.

Implementation

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