notifyChange method

Future<void> notifyChange({
  1. required String uri,
  2. ContentObserver? observer,
  3. @RequiresApiOrNoop(24) int? flags,
})

notifyChange(uri: Uri, observer: ContentObserver?): Unit https://developer.android.com/reference/kotlin/android/content/ContentResolver#notifychange

notifyChange(uri: Uri, observer: ContentObserver?, flags: Int): Unit https://developer.android.com/reference/kotlin/android/content/ContentResolver#notifychange_2

Implementation

Future<void> notifyChange({
  required String uri,
  ContentObserver? observer,
  @RequiresApiOrNoop(24) int? flags,
}) {
  return methodChannel.invokeMethod<void>('notifyChange', {
    'uri': uri,
    'observer': observer?.id,
    'flags': flags,
  });
}