EdgeInsetsDirectional.symmetric constructor

const EdgeInsetsDirectional.symmetric(
  1. {double horizontal = 0.0,
  2. double vertical = 0.0}
)

Creates insets with symmetric vertical and horizontal offsets.

This is equivalent to EdgeInsets.symmetric, since the inset is the same with either TextDirection. This constructor is just a convenience for type compatibility.

Eight pixel margin above and below, no horizontal margins:
link
const EdgeInsetsDirectional.symmetric(vertical: 8.0)

Implementation

const EdgeInsetsDirectional.symmetric({
  double horizontal = 0.0,
  double vertical = 0.0,
})  : start = horizontal,
      end = horizontal,
      top = vertical,
      bottom = vertical;