RootNavigator constructor

const RootNavigator({
  1. Key? key,
  2. required Map<String, Widget Function(BuildContext)> routes,
  3. Widget? rootWidget,
  4. String? rootName,
  5. Map<String, Object>? rootNameArguments,
})

Implementation

const RootNavigator({
  Key? key,
  required this.routes,
  this.rootWidget,
  this.rootName,
  this.rootNameArguments,
})  : assert(rootWidget != null || rootName != null),
      assert((rootNameArguments != null && rootWidget == null) ||
          rootNameArguments == null),
      super(key: key);