getBorder method

BoxBorder? getBorder(
  1. BuildContext context
)

Implementation

BoxBorder? getBorder(BuildContext context) {
  return type == ButtonType.border
      ? Border.all(
          color: (borderColor ?? Theme.of(context).colorScheme.secondary)
              .withValues(alpha: 1),
          width: borderWidth ?? 0.4,
        )
      : null;
}