push static method

Future<bool> push({
  1. required AATemplate template,
})

Implementation

static Future<bool> push({required AATemplate template}) async {
  final bool? isCompleted = await _androidAutoController
      .flutterToNativeModule(FAAChannelTypes.pushTemplate, <String, dynamic>{
    'template': template.toJson(),
    'runtimeType': _getAARuntimeTypeString(template),
  });
  if (isCompleted == true) {
    FlutterAndroidAutoController.templateHistory.add(template);
  }
  return isCompleted ?? false;
}