toEliudFontWeight function
Implementation
EliudFontWeight toEliudFontWeight(int? index) {
switch (index) {
case 0:
return EliudFontWeight.thin;
case 1:
return EliudFontWeight.extraLight;
case 2:
return EliudFontWeight.light;
case 3:
return EliudFontWeight.normal;
case 4:
return EliudFontWeight.medium;
case 5:
return EliudFontWeight.semiBold;
case 6:
return EliudFontWeight.bold;
case 7:
return EliudFontWeight.extraBold;
case 8:
return EliudFontWeight.mostThick;
}
return EliudFontWeight.unknown;
}