getDecoration method

BoxDecoration? getDecoration()

Implementation

BoxDecoration? getDecoration() {
  if (borderWidth > 0) {
    return BoxDecoration(
      border: Border.all(
        color: isEnable ? borderColor : disableBorderColor ?? borderColor,
        width: borderWidth,
      ),
      borderRadius: borderRadius ?? BorderRadius.all(Radius.circular(radius)),
    );
  } else {
    return null;
  }
}