matchesOrientation static method

bool matchesOrientation(
  1. OrientationRequest orientation
)

Implementation

static bool matchesOrientation(OrientationRequest orientation) {
  final m = AppDimensScope.metricsOrDefault;
  return switch (orientation) {
    OrientationRequest.landscape => m.isLandscape,
    OrientationRequest.portrait => m.isPortrait,
    OrientationRequest.any => true,
  };
}