From 3683d72aa7a5e976e63604bada2a16e74d6bb565 Mon Sep 17 00:00:00 2001 From: mertwhocodes <41569309+mertwhocodes@users.noreply.github.com> Date: Tue, 20 Dec 2022 00:34:06 +0300 Subject: [PATCH] nullsafety --- lib/src/bluetooth_device.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/src/bluetooth_device.dart b/lib/src/bluetooth_device.dart index ca3bb9ba6..857e64fee 100644 --- a/lib/src/bluetooth_device.dart +++ b/lib/src/bluetooth_device.dart @@ -5,10 +5,10 @@ part of flutter_blue; class BluetoothDevice { - final DeviceIdentifier id; - final String name; - final BluetoothDeviceType type; - + DeviceIdentifier? id; + String? name; + BluetoothDeviceType? type; +BluetoothDevice({this.id, this.name, this.type}); BluetoothDevice.fromProto(protos.BluetoothDevice p) : id = new DeviceIdentifier(p.remoteId), name = p.name,