listenPermissionResult static method

Stream<bool>? listenPermissionResult()

Implementation

static Stream<bool>? listenPermissionResult() {
  _permissionsStream ??= _permissionsChannel
      .receiveBroadcastStream('permissionsChannel')
      .transform(StreamTransformer<dynamic, bool>.fromHandlers(
          handleData: (data, sink) {
    sink.add(data);
  }));
  return _permissionsStream;
}