orientation property

Orientation get orientation

The current device orientation.

Implementation

Orientation get orientation {
  // Orientation depends on width/height implicitly in our model
  final data = FlexiInheritedWidget.of(_context, aspect: FlexiAspect.width);
  if (data == null) {
    throw FlutterError(
        'FlexiConfig not found in context. Make sure to wrap your app with FlexiConfig.');
  }
  return data.orientation;
}