removeObserver function

Future<void> removeObserver(
  1. MethodChannel methodChannel,
  2. String pageId,
  3. List<String> ids
)

组件移除监听 ids 组件id集合

Implementation

Future<void> removeObserver(
    MethodChannel methodChannel, String pageId, List<String> ids) async {
  await methodChannel
      .invokeMethod('removeObserver', {'pageId': pageId, 'ids': ids});
}