REdgeInsets.symmetric constructor

REdgeInsets.symmetric({
  1. double vertical = 0,
  2. double horizontal = 0,
})

Creates adapt insets with symmetrical vertical and horizontal offsets.

{@tool snippet}

Adapt Eight pixel margin above and below, no horizontal margins:

const REdgeInsets.symmetric(vertical: 8.0)

{@end-tool}

Implementation

REdgeInsets.symmetric({
  double vertical = 0,
  double horizontal = 0,
}) : super.symmetric(vertical: vertical.r, horizontal: horizontal.r);