Ahmed Fwela

no need for an extra class

... ... @@ -182,55 +182,3 @@ class GetPage<T> extends Page<T> {
).getPageToRoute<T>(this, unknownRoute);
}
}
class GetRouteAwarePage<T> extends GetPage<T> {
GetRouteAwarePage({
required String name,
required GetRouteAwarePageBuilder page,
bool? popGesture,
Map<String, String>? parameters,
String? title,
Transition? transition,
Curve curve = Curves.linear,
bool? participatesInRootNavigator,
Alignment? alignment,
bool maintainState = true,
bool opaque = true,
double Function(BuildContext context)? gestureWidth,
Bindings? binding,
List<Bindings> bindings = const [],
CustomTransition? customTransition,
Duration? transitionDuration,
bool fullscreenDialog = false,
bool preventDuplicates = true,
Object? arguments,
List<GetPage> children = const <GetPage>[],
List<GetMiddleware>? middlewares,
GetPage? unknownRoute,
bool showCupertinoParallax = true,
}) : super(
name: name,
page: page,
alignment: alignment,
arguments: arguments,
binding: binding,
bindings: bindings,
children: children,
curve: curve,
customTransition: customTransition,
fullscreenDialog: fullscreenDialog,
gestureWidth: gestureWidth,
maintainState: maintainState,
middlewares: middlewares,
opaque: opaque,
parameters: parameters,
participatesInRootNavigator: participatesInRootNavigator,
popGesture: popGesture,
preventDuplicates: preventDuplicates,
showCupertinoParallax: showCupertinoParallax,
title: title,
transition: transition,
transitionDuration: transitionDuration,
unknownRoute: unknownRoute,
);
}
... ...