symmetric static method

EdgeInsets symmetric(
  1. Axis axis, {
  2. double main = 0.0,
  3. double cross = 0.0,
})

Creates symmetric edge insets on the given axis.

Implementation

static EdgeInsets symmetric(
  Axis axis, {
  double main = 0.0,
  double cross = 0.0,
}) {
  if (axis == Axis.vertical) {
    return EdgeInsets.symmetric(
      vertical: main,
      horizontal: cross,
    );
  } else {
    return EdgeInsets.symmetric(
      horizontal: main,
      vertical: cross,
    );
  }
}