updateWidget method
Future<void>
updateWidget({
- required String widgetName,
- required Uint8List imageBytes,
- required List<
Map< actions,String, dynamic> >
override
Saves imageBytes and actions to shared storage, then triggers a
native widget timeline reload for widgetName.
Implementation
@override
Future<void> updateWidget({
required String widgetName,
required Uint8List imageBytes,
required List<Map<String, dynamic>> actions,
}) async {
await _methodChannel.invokeMethod<void>('updateWidget', {
'widgetName': widgetName,
'imageBytes': imageBytes,
'actions': actions,
});
}