init method
Implementation
void init(
Map<String, dynamic> params,
Map<String, dynamic>? extra,
Object? groupId,
) {
WidgetsFlutterBinding.ensureInitialized();
if (_restore()) return;
RouteQueueEntry? entry;
final defaultName =
WidgetsBinding.instance.platformDispatcher.defaultRouteName;
if (defaultName != '/') {
entry = _parse(defaultName);
}
entry ??=
createEntry(rootPage, params: params, extra: extra, groupId: groupId);
routeQueue.insert(entry);
assert(routeQueue.current == entry);
}