callsNamed method
Returns native callbacks whose method name equals method.
Use this for streams that do not consume untargeted error callbacks, such as characteristic notifications,
characteristic reads, and adapter or permission status updates. The returned stream is a broadcast stream.
Implementation
Stream<MethodCall> callsNamed(String method) {
return _calls.stream.where((MethodCall call) => call.method == method);
}