onSize static method

bool onSize(
  1. MediaQueryData old,
  2. MediaQueryData data
)

Screen will be rebuild when size changes

Implementation

static bool onSize(MediaQueryData old, MediaQueryData data) {
  return old.size != data.size;
}