RoundedRectangleBorder constructor Null safety

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

Creates a rounded rectangle border.

The arguments must not be null.

Implementation

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