fromRoute<T> static method

LaamsPage<T> fromRoute<T>(
  1. LaamsRoute route,
  2. Widget child
)

Implementation

static LaamsPage<T> fromRoute<T>(LaamsRoute route, Widget child) {
  return LaamsPage<T>._(
    key: ValueKey(route.name),
    name: route.name,
    animationType: route.animationType ?? AnimationType.none,
    animationDuration: route.animationDuration ?? 300,
    arguments: route.arguments,
    child: child,
  );
}