borderSuccess function

Border borderSuccess(
  1. BuildContext context, {
  2. double opacity = 1.0,
  3. double width = 1.0,
  4. BorderStyle style = BorderStyle.solid,
  5. BorderSide? top,
  6. BorderSide? left,
  7. BorderSide? right,
  8. 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,
  );
}