BorderDirectional constructor

const BorderDirectional({
  1. BorderSide top = BorderSide.none,
  2. BorderSide start = BorderSide.none,
  3. BorderSide end = BorderSide.none,
  4. BorderSide bottom = BorderSide.none,
})

Creates a border.

The start and end sides represent the horizontal sides; the start side is on the leading edge given the reading direction, and the end side is on the trailing edge. They are resolved during paint.

All the sides of the border default to BorderSide.none.

Implementation

const BorderDirectional({
  this.top = BorderSide.none,
  this.start = BorderSide.none,
  this.end = BorderSide.none,
  this.bottom = BorderSide.none,
});