SmartBorderRadius.only constructor

SmartBorderRadius.only({
  1. RadiusSize topLeft = RadiusSize.none,
  2. RadiusSize topRight = RadiusSize.none,
  3. RadiusSize bottomLeft = RadiusSize.none,
  4. RadiusSize bottomRight = RadiusSize.none,
})

Implementation

factory SmartBorderRadius.only({
  RadiusSize topLeft = RadiusSize.none,
  RadiusSize topRight = RadiusSize.none,
  RadiusSize bottomLeft = RadiusSize.none,
  RadiusSize bottomRight = RadiusSize.none,
}) {
  return SmartBorderRadius._(
    value: SmartBorderCornerRadii(
      topLeft: topLeft.value,
      topRight: topRight.value,
      bottomLeft: bottomLeft.value,
      bottomRight: bottomRight.value,
    ).value,
  );
}