topRightSharpRadius property
BorderRadius
get
topRightSharpRadius
Top-right corner border radius.
Example:
Container(
child: Text("Hello Flutter"),
decoration: BoxDecoration(
borderRadius: 8.topRightSharpRadius, // Makes top-right corner (8px) rounded.
),
),
Implementation
BorderRadius get topRightSharpRadius => SharpBorderRadius.only(
topRight:
SharpRadius(cornerRadius: (this ?? 0).toDouble(), sharpRatio: 1));