BeveledRectangleBorder constructor Null safety

const BeveledRectangleBorder(
  1. {BorderSide side = BorderSide.none,
  2. BorderRadiusGeometry borderRadius = BorderRadius.zero}
)

Creates a border like a RoundedRectangleBorder except that the corners are joined by straight lines instead of arcs.

The arguments must not be null.

Implementation

const BeveledRectangleBorder({
  super.side,
  this.borderRadius = BorderRadius.zero,
}) : assert(side != null),
     assert(borderRadius != null);