phoneStateChange method
phoneStateChange ios callkit android telephonyManager phoneStateChange
Implementation
@override
Stream<CallResult> phoneStateChange() {
return _eventChannel
.receiveBroadcastStream()
.map((event) {
return CallResult.fromFlag(event);
})
.asBroadcastStream()
.distinct();
}