getThemeTransition method

Transition? getThemeTransition()

Implementation

Transition? getThemeTransition() {
  final platform = context.theme.platform;
  final matchingTransition =
      Get.theme.pageTransitionsTheme.builders[platform];
  switch (matchingTransition) {
    case CupertinoPageTransitionsBuilder():
      return Transition.cupertino;
    case ZoomPageTransitionsBuilder():
      return Transition.zoom;
    case FadeUpwardsPageTransitionsBuilder():
      return Transition.fade;
    case OpenUpwardsPageTransitionsBuilder():
      return Transition.native;
    default:
      return null;
  }
}