updateWidget method

  1. @override
Future<void> updateWidget({
  1. required String widgetName,
  2. required Uint8List imageBytes,
  3. required List<Map<String, dynamic>> actions,
})
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,
  });
}