addObserver method

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

Implementation

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