getPageStaticIconSized method
Implementation
double getPageStaticIconSized(String pageName, SizeType type) {
switch (type) {
case SizeType.small:
return Get.find<PageManager>().getPageFonts(pageName) != null &&
Get.find<PageManager>().getPageFonts(pageName)!.icon_small !=
null
? Get.find<PageManager>().getPageFonts(pageName)!.icon_small!
: _staticIconSizes["small"]!;
case SizeType.medium:
return Get.find<PageManager>().getPageFonts(pageName) != null &&
Get.find<PageManager>().getPageFonts(pageName)!.icon_medium !=
null
? Get.find<PageManager>().getPageFonts(pageName)!.icon_medium!
: _staticIconSizes["medium"]!;
case SizeType.large:
return Get.find<PageManager>().getPageFonts(pageName) != null &&
Get.find<PageManager>().getPageFonts(pageName)!.icon_large !=
null
? Get.find<PageManager>().getPageFonts(pageName)!.icon_large!
: _staticIconSizes["large"]!;
case SizeType.mega:
return Get.find<PageManager>().getPageFonts(pageName) != null &&
Get.find<PageManager>().getPageFonts(pageName)!.icon_mega !=
null
? Get.find<PageManager>().getPageFonts(pageName)!.icon_mega!
: _staticIconSizes["mega"]!;
}
}