GgRouter.root constructor

const GgRouter.root({
  1. Key? key,
  2. required Widget child,
  3. required GgRouteTreeNode node,
})

This method is called by GgRouterDelegate to create the root instance.

Implementation

const GgRouter.root({
  super.key,
  required Widget child,
  required GgRouteTreeNode node,
})  : _rootChild = child,
      _rootNode = node,
      children = const {},
      semanticLabels = const {},
      defaultRoute = null,
      inAnimation = null,
      outAnimation = null,
      animationDuration = const Duration(milliseconds: 500);