push<T extends Object> method

Future<T?> push<T extends Object>(
  1. Widget page, {
  2. EasyTransitionType? transitionType,
})

Push

Implementation

Future<T?> push<T extends Object>(Widget page,
        {EasyTransitionType? transitionType}) =>
    Navigator.of(this).push(EasyPageTransition(
        child: page,
        childCurrent: this.widget,
        type: transitionType ??= Platform.isAndroid
            ? EasyTransitionType.bottomToTop
            : EasyTransitionType.rightToLeft));