getToDeviceEventQueue method

  1. @override
Future<List<QueuedToDeviceEvent>> getToDeviceEventQueue()
override

Implementation

@override
Future<List<QueuedToDeviceEvent>> getToDeviceEventQueue() async =>
    await Future.wait(_toDeviceQueueBox.keys.map((i) async {
      final raw = await _toDeviceQueueBox.get(i);
      raw['id'] = i;
      return QueuedToDeviceEvent.fromJson(convertToJson(raw));
    }).toList());