Composer.fromThis constructor

Composer.fromThis(
  1. BuildContext context
)

Implementation

factory Composer.fromThis(BuildContext context) {
  return Composer(
    context: context,
    isLandscape: OrkittScreenUtils.orientation == Orientation.landscape,
    isPortrait: OrkittScreenUtils.orientation == Orientation.portrait,
    isMobile: OrkittScreenUtils.screenType == ScreenType.mobile,
    isTablet: OrkittScreenUtils.screenType == ScreenType.tablet,
    isDesktop: OrkittScreenUtils.screenType == ScreenType.desktop,
  );
}