popToRoot static method

Future<bool> popToRoot()

Removes all of the templates from the navigation hierarchy except the root template.

The history will be updated accordingly to the screen lifecycle.

Implementation

static Future<bool> popToRoot() async {
  final bool? isCompleted =
      await _androidAutoController.flutterToNativeModule(
    FAAChannelTypes.popToRootTemplate,
  );
  return isCompleted ?? false;
}