removeObserver method

  1. @override
Future<void> removeObserver(
  1. TUICallObserver observer
)
override

Implementation

@override
Future<void> removeObserver(TUICallObserver observer) async {
  if (!kIsWeb && (Platform.isIOS || Platform.isAndroid)) {
    _observerList.remove(observer);
    if (_observerList.isEmpty) {
      methodChannel.invokeMethod("removeObserver", {});
    }
  }
}