isPortrait method
True is device orientation is portrait.
Implementation
bool isPortrait() => MediaQuery.of(this).orientation == Orientation.portrait;
True is device orientation is portrait.
bool isPortrait() => MediaQuery.of(this).orientation == Orientation.portrait;