DiscoverServicesResult constructor

DiscoverServicesResult({
  1. String? remoteId,
  2. Iterable<BluetoothService>? services,
})

Implementation

factory DiscoverServicesResult({
  $core.String? remoteId,
  $core.Iterable<BluetoothService>? services,
}) {
  final _result = create();
  if (remoteId != null) {
    _result.remoteId = remoteId;
  }
  if (services != null) {
    _result.services.addAll(services);
  }
  return _result;
}