getForLayout static method
dynamic
getForLayout(
- AkoResponsiveDevice layout, {
- dynamic mobile,
- dynamic tablet,
- dynamic desktop,
Implementation
static getForLayout(AkoResponsiveDevice layout, {mobile, tablet, desktop}) {
if (layout.isDesktop()) {
return desktop;
}
if (layout.isTablet()) {
return tablet;
}
if (layout.isMobile()) {
return mobile;
}
}