getRoundedRectangleBorder static method
RoundedRectangleBorder
getRoundedRectangleBorder(
- BuildContext context, {
- UpStyle? override,
- UpStyle? style,
- UpColorType? colorType,
Implementation
static RoundedRectangleBorder getRoundedRectangleBorder(
BuildContext context, {
UpStyle? override,
UpStyle? style,
UpColorType? colorType,
}) {
return RoundedRectangleBorder(
borderRadius: override?.isRounded ??
style?.isRounded ??
getStyleByType(
(FlutterUpConfig.of(context)?.theme ??
UpConstants.kDefaultTheme),
colorType)
.isRounded ??
UpConstants.kDefaultStyleIsRounded
? BorderRadius.circular(override?.borderRadius ??
style?.borderRadius ??
getStyleByType(
(FlutterUpConfig.of(context)?.theme ??
UpConstants.kDefaultTheme),
colorType)
.borderRadius ??
UpConstants.kDefaultStyleBorderRadius)
: BorderRadius.zero,
side: BorderSide(
color: override?.borderColor ??
style?.borderColor ??
getStyleByType(
(FlutterUpConfig.of(context)?.theme ??
UpConstants.kDefaultTheme),
colorType)
.borderColor ??
UpConstants.kDefaultStyleBorderColor,
width: override?.borderWidth ??
style?.borderWidth ??
getStyleByType(
(FlutterUpConfig.of(context)?.theme ??
UpConstants.kDefaultTheme),
colorType)
.borderWidth ??
UpConstants.kDefaultStyleBorderWidth,
),
);
}