funcIconCloseConverter function

double funcIconCloseConverter(
  1. ChipSize buttonSize
)

function to convert chip size into icon close default size

Implementation

double funcIconCloseConverter(ChipSize buttonSize) {
  switch (buttonSize) {
    case ChipSize.large:
      return 20;
    case ChipSize.medium:
      return 16;
    case ChipSize.small:
      return 12;
  }
}