setRootTemplate static method
Implementation
static Future<void> setRootTemplate({
required AATemplate template,
}) async {
final bool? isCompleted = await _androidAutoController
.flutterToNativeModule(FAAChannelTypes.setRootTemplate, {
'template': template.toJson(),
'runtimeType': 'F${template.runtimeType}',
});
if (isCompleted == true) {
if (FlutterAndroidAutoController.templateHistory.isEmpty) {
FlutterAndroidAutoController.templateHistory.add(template);
} else {
FlutterAndroidAutoController.templateHistory[0] = template;
}
}
}