getBorderSide method

BorderSide? getBorderSide()

Get button or card borderSide. This method is used internally by the package and should not be called externally.

Implementation

BorderSide? getBorderSide() {
  final bool isUseWidth = params.containsKey(EnumSpWMLParams.borderWidth);
  final bool isUseColor = params.containsKey(EnumSpWMLParams.borderColor);
  return isUseWidth || isUseColor
      ? BorderSide(
          width: isUseWidth ? params[EnumSpWMLParams.borderWidth]! : 1.0,
          color:
              isUseColor ? params[EnumSpWMLParams.borderColor] : Colors.black,
          style: BorderStyle.solid)
      : null;
}