getTrackSize function
Implementation
double getTrackSize(HMSwitchSize size) {
switch (size) {
case HMSwitchSize.xs:
return 37.0;
case HMSwitchSize.sm:
return 44.0;
case HMSwitchSize.md:
return 50.0;
case HMSwitchSize.lg:
return 58.0;
case HMSwitchSize.xl:
return 70.0;
}
}