borderRadius property

double get borderRadius

Determines the border radius for rounded square or circle shape.

Implementation

double get borderRadius {
  if (shape == AvatarShape.circle) {
    return avatarSize / 2;
  }
  switch (predefinedSize) {
    case AvatarSize.large:
      return 16;
    case AvatarSize.medium:
      return 12;
    case AvatarSize.small:
      return 8;
    default:
      return 12;
  }
}