getWebResponsiveSize static method

dynamic getWebResponsiveSize({
  1. dynamic smallSize,
  2. dynamic mediumSize,
  3. dynamic largeSize,
})

Implementation

static getWebResponsiveSize({smallSize, mediumSize, largeSize}) {
  return width < 600
      ? smallSize //'phone'
      : width >= 600 && width <= 1024
      ? mediumSize //'tablet'
      : largeSize; //'desktop';
}