onOrientation static method

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

Screen will be rebuild when orientation changes

Implementation

static bool onOrientation(MediaQueryData old, MediaQueryData data) {
  return old.orientation != data.orientation;
}