paddingDirectional method

Widget paddingDirectional({
  1. double start = 0.0,
  2. double top = 0.0,
  3. double end = 0.0,
  4. double bottom = 0.0,
})

Adds padding that follows the reading direction.

start is the left side in left-to-right languages and the right side in right-to-left languages, and end is the opposite side.

Implementation

Widget paddingDirectional({
  double start = 0.0,
  double top = 0.0,
  double end = 0.0,
  double bottom = 0.0,
}) {
  return Padding(
    padding: EdgeInsetsDirectional.only(
      start: start,
      top: top,
      end: end,
      bottom: bottom,
    ),
    child: this,
  );
}