openBaseExpansion<T> function

Future<T> openBaseExpansion<T>(
  1. BuildContext context,
  2. BaseExpansion baseExpansion
)

Implementation

Future<T> openBaseExpansion<T>(
  BuildContext context,
  BaseExpansion baseExpansion,
) {
  return Navigator.of(context).push<T>(
    PageRouteBuilder<T>(
      opaque: false,
      transitionDuration: const Duration(milliseconds: 0),
      pageBuilder: (
        BuildContext context,
        Animation<double> animation,
        Animation<double> secondaryAnimation,
      ) {
        return baseExpansion;
      },
    ),
  );
}