Border.symmetric constructor

const Border.symmetric(
  1. {BorderSide vertical: BorderSide.none,
  2. BorderSide horizontal: BorderSide.none}
)

Creates a border with symmetrical vertical and horizontal sides.

All arguments default to BorderSide.none and must not be null.

Implementation

const Border.symmetric({
  BorderSide vertical = BorderSide.none,
  BorderSide horizontal = BorderSide.none,
}) : assert(vertical != null),
     assert(horizontal != null),
     left = horizontal,
     top = vertical,
     right = horizontal,
     bottom = vertical;