LinearBorderEdge constructor

const LinearBorderEdge({
  1. double size = 1.0,
  2. double alignment = 0.0,
})

Defines one side of a LinearBorder.

The values of size and alignment must be between 0.0 and 1.0, and -1.0 and 1.0 respectively.

Implementation

const LinearBorderEdge({
  this.size = 1.0,
  this.alignment = 0.0,
}) : assert(size >= 0.0 && size <= 1.0);