phoneStateChange method

  1. @override
Stream<CallResult> phoneStateChange()
override

phoneStateChange ios callkit android telephonyManager phoneStateChange

Implementation

@override
Stream<CallResult> phoneStateChange() {
  return _eventChannel
      .receiveBroadcastStream()
      .map((event) {
        return CallResult.fromFlag(event);
      })
      .asBroadcastStream()
      .distinct();
}