activeDeviceStream method

  1. @override
Stream<bool> activeDeviceStream()
override

Implementation

@override
Stream<bool> activeDeviceStream() {
  return activeDeviceEventChannel.receiveBroadcastStream().map((
    dynamic event,
  ) {
    final available = event as bool;
    if (kDebugMode) {
      debugPrint('[MetaWearablesDAT] activeDevice → $available');
    }
    return available;
  });
}