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;
}