parseRounded method

String? parseRounded(
  1. String? radius
)

Implementation

String? parseRounded(String? radius) {
  if (radius == null || radius == "none") return null;
  var v = "rounded('$radius')";
  if (radius.startsWith("[") && radius.endsWith("]")) {
    v = radius.substring(1, radius.length - 1);
  }
  return "Radius.circular($v)";
}