AdvertisementData constructor
AdvertisementData({})
Implementation
factory AdvertisementData({
$core.String? localName,
Int32Value? txPowerLevel,
$core.bool? connectable,
$core.Map<$core.int, $core.List<$core.int>>? manufacturerData,
$core.Map<$core.String, $core.List<$core.int>>? serviceData,
$core.Iterable<$core.String>? serviceUuids,
}) {
final $result = create();
if (localName != null) {
$result.localName = localName;
}
if (txPowerLevel != null) {
$result.txPowerLevel = txPowerLevel;
}
if (connectable != null) {
$result.connectable = connectable;
}
if (manufacturerData != null) {
$result.manufacturerData.addAll(manufacturerData);
}
if (serviceData != null) {
$result.serviceData.addAll(serviceData);
}
if (serviceUuids != null) {
$result.serviceUuids.addAll(serviceUuids);
}
return $result;
}