update method
Implementation
Future<void> update(String activityId, Map<String, dynamic> contentState) async {
if (_platform() == 'ios') {
await NexusPlatform.instance.liveActivityUpdate(activityId: activityId, contentState: contentState);
} else if (_platform() == 'android') {
final template = _localTemplates[activityId];
await renderNexusLiveActivity({
'event': 'update',
'activityId': activityId,
'template': ?template,
if (template != null) 'data': contentState else 'contentState': contentState,
});
}
}