getForLayout static method

dynamic getForLayout(
  1. AkoResponsiveDevice layout, {
  2. dynamic mobile,
  3. dynamic tablet,
  4. 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;
  }
}