BorderRadiusDirectional.only constructor Null safety

const BorderRadiusDirectional.only(
  1. {Radius topStart,
  2. Radius topEnd,
  3. Radius bottomStart,
  4. Radius bottomEnd}
)

Creates a border radius with only the given non-zero values. The other corners will be right angles.

Implementation

const BorderRadiusDirectional.only({
  this.topStart = Radius.zero,
  this.topEnd = Radius.zero,
  this.bottomStart = Radius.zero,
  this.bottomEnd = Radius.zero,
});