borderSuccess function
Border
borderSuccess(
- BuildContext context, {
- double opacity = 1.0,
- double width = 1.0,
- BorderStyle style = BorderStyle.solid,
- BorderSide? top,
- BorderSide? left,
- BorderSide? right,
- BorderSide? bottom,
Implementation
Border borderSuccess(
BuildContext context, {
double opacity = 1.0,
double width = 1.0,
BorderStyle style = BorderStyle.solid,
BorderSide? top,
BorderSide? left,
BorderSide? right,
BorderSide? bottom,
}) {
final theme = BootstrapTheme.of(context);
final borderSide = BorderSide(
width: width,
color: theme.colors.success.withOpacity(opacity),
style: style);
return Border(
top: top ?? borderSide,
left: left ?? borderSide,
right: right ?? borderSide,
bottom: bottom ?? borderSide,
);
}