setSyncNotification method

  1. @override
Future<void> setSyncNotification({
  1. String? title,
  2. String? text,
})
override

Customizes the foreground notification shown during background sync.

Only affects Android. On iOS this is a no-op.

Implementation

@override
Future<void> setSyncNotification({String? title, String? text}) async {
  await _channel.invokeMethod<void>('setSyncNotification', {
    if (title != null) 'title': title,
    if (text != null) 'text': text,
  });
}