shape method

ShapeBorder? shape()

Implementation

ShapeBorder? shape() => hasShape()
    ? RoundedRectangleBorder(
        side: hasBorder()
            ? BorderSide(
                color: border ?? colorScheme().background,
                width: borderWidth!,
              )
            : BorderSide.none,
        borderRadius: BorderRadius.circular(borderRadius ?? 8), // <-- Radius
      )
    : null;