shapeLinear method

Widget shapeLinear({
  1. Color? fillColor,
  2. Color? borderColor,
  3. BorderSide? side,
  4. LinearBorderEdge? start,
  5. LinearBorderEdge? end,
  6. LinearBorderEdge? top,
  7. LinearBorderEdge? bottom,
})

Implementation

Widget shapeLinear(
    {Color? fillColor, Color? borderColor, BorderSide? side, LinearBorderEdge? start, LinearBorderEdge? end, LinearBorderEdge? top, LinearBorderEdge? bottom}) {
  BorderSide? bs = side;
  if (bs == null && borderColor != null) {
    bs = BorderSide(color: borderColor);
  }
  return this.shapeDecorated(shape: LinearBorder(side: bs ?? BorderSide.none, start: start, end: end, top: top, bottom: bottom), color: fillColor);
}