RoundedRectangleBorder constructor Null safety

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

Creates a rounded rectangle border.

The arguments must not be null.

Implementation

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