pop static method
Removes the top-most template from the navigation hierarchy.
- If animated is true, CarPlay animates the transition between templates.
- count represents how many times this function will occur.
Implementation
static Future<bool> pop({bool animated = true, int count = 1}) async {
final bool? isCompleted =
await FlutterCarPlayController.flutterToNativeModule(
FCPChannelTypes.popTemplate,
<String, dynamic>{'count': count, 'animated': animated},
);
return isCompleted ?? false;
}