getButtonShape method

OutlinedBorder getButtonShape()

Implementation

OutlinedBorder getButtonShape() => buttonShape == ButtonShape.minCornerRadius
    ? RoundedRectangleBorder(
        side: getBorder(),
      )
    : buttonShape == ButtonShape.defaultCornerRadius
        ? RoundedRectangleBorder(
            side: getBorder(),
            borderRadius: BorderRadius.circular(4),
          )
        : buttonShape == ButtonShape.customRadius
            ? RoundedRectangleBorder(
                side: getBorder(),
                borderRadius: BorderRadius.circular(customBorderRadius ?? 4),
              )
            : StadiumBorder(
                side: getBorder(),
              );