radius method

BorderRadius radius(
  1. BuildContext context
)

Returns radius based on ZetaWidgetBorder

Implementation

BorderRadius radius(BuildContext context) {
  switch (this) {
    case ZetaWidgetBorder.sharp:
      return Zeta.of(context).radius.none;
    case ZetaWidgetBorder.rounded:
      return Zeta.of(context).radius.minimal;
    case ZetaWidgetBorder.full:
      return Zeta.of(context).radius.full;
  }
}