summaryrefslogtreecommitdiff
path: root/lib/model/motive_selection
diff options
context:
space:
mode:
Diffstat (limited to 'lib/model/motive_selection')
-rw-r--r--lib/model/motive_selection/flutter_blue_plus_motive_selection.dart6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/model/motive_selection/flutter_blue_plus_motive_selection.dart b/lib/model/motive_selection/flutter_blue_plus_motive_selection.dart
index 4046d83..561388a 100644
--- a/lib/model/motive_selection/flutter_blue_plus_motive_selection.dart
+++ b/lib/model/motive_selection/flutter_blue_plus_motive_selection.dart
@@ -35,12 +35,10 @@ class FlutterBluePlusMotiveSelection
List<BadgeMotive> _cachedMotives = [];
- late final BluetoothDevice _fbpDevice;
+ BluetoothDevice get _fbpDevice => _device.scanResult.device;
FlutterBluePlusMotiveSelection({required FlutterBluePlusDevice device})
- : _device = device {
- _fbpDevice = _device.scanResult.device;
- }
+ : _device = device;
@override
Future<BadgeMotive> getCurrentMotive() async {