getDefaultBorderRadius static method
The border radius associated with the given TWidgetSize.
Implementation
static BorderRadius getDefaultBorderRadius(TWidgetSize size) {
switch (size) {
case TWidgetSize.xs:
case TWidgetSize.sm:
return TBorderRadius.rounded_sm;
case TWidgetSize.md:
case TWidgetSize.lg:
case TWidgetSize.xl:
return TBorderRadius.rounded_md;
}
}