CustomRoundedRectangleBorder constructor

const CustomRoundedRectangleBorder({
  1. BorderSide? leftSide,
  2. BorderSide? rightSide,
  3. BorderSide? topSide,
  4. BorderSide? bottomSide,
  5. BorderSide? topLeftCornerSide,
  6. BorderSide? topRightCornerSide,
  7. BorderSide? bottomLeftCornerSide,
  8. BorderSide? bottomRightCornerSide,
  9. BorderRadius borderRadius = BorderRadius.zero,
})

Creates a custom rounded rectangle border. Custom meaning that every single side/corner is controlled individually which grants the possibility to leave out borders, give each border a different color...

The arguments must not be null.

Implementation

const CustomRoundedRectangleBorder({
  this.leftSide,
  this.rightSide,
  this.topSide,
  this.bottomSide,
  this.topLeftCornerSide,
  this.topRightCornerSide,
  this.bottomLeftCornerSide,
  this.bottomRightCornerSide,
  this.borderRadius: BorderRadius.zero,
})  : assert(borderRadius != null);