BluetoothService.fromProto constructor

BluetoothService.fromProto(
  1. BmBluetoothService p
)

Implementation

BluetoothService.fromProto(BmBluetoothService p)
    : remoteId = p.remoteId,
      serviceUuid = p.serviceUuid,
      isPrimary = p.isPrimary,
      characteristics = p.characteristics
          .map((c) => BluetoothCharacteristic.fromProto(c))
          .toList(),
      includedServices = p.includedServices
          .map((s) => BluetoothService.fromProto(s))
          .toList();