ModuleEcg class

Available Extensions
Annotations
  • @CopyWith()

Constructors

ModuleEcg({required ModuleBle ble, Commands commands = const Commands(), Stream<List<int>> udfRawStream({required ModuleEcg ecg}) = Builtin.udfRawStream, List<List<double>>? udfConvert({required int channelCount, required List<int> event, required int sampleCount}) = Builtin.udfConvertWearEcg, Stream<List<int>> udfLeadStream({required ModuleEcg ecg}) = Builtin.udfLeadStreamWearEcg, LeadState? udfLeadCompute({required List<int> event}) = Builtin.udfLeadComputeWearEcg, Channels udfFilter({required int channelCount, required Channels channels, required DataFilter dataFilter, required bool isAttached, required int sampleCount}) = Builtin.udfFilter, int channelCount = 12, int sampleCount = 9, int filterCount = 8})

Properties

adaptiveHR AdaptiveHeartRate
getter/setter pair
ble ModuleBle
final
callbacks List<CallbackType>
final
channelCount int
channelCount is the number of channels
final
commands Commands
final
dataFilter DataFilter
getter/setter pair
displayBuffer double
displayBuffer decides a length of buffered Stream, which is shown to screen.
getter/setter pair
filterCount int
filterCount is the number of data filters
final
hashCode int
The hash code for this object.
no setterinherited
isCleanerCallback bool
getter/setter pair
isCompressed bool
If isCompressed is true,
getter/setter pair
isFilterAlways bool
getter/setter pair
isMeasuring bool
getter/setter pair
isPaused bool
getter/setter pair
isStrictCallback bool
getter/setter pair
lastChannel Channels?
lastChannel is a latest stream value from ble.streams.bufferedEcg
getter/setter pair
lastLeadState LeadState?
lastLeadState is a latest stream value from ble.streams.leadStateEcg
getter/setter pair
lengthBuffer double
lengthBuffer decides a length of buffered Stream,
getter/setter pair
maxBuffer double
maxBuffer decides the maximum length of buffered Stream.
getter/setter pair
refreshBuffer double
refreshBuffer decides a length to be hidden after refreshed.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sampleCount int
sampleCount is the number of samples in a packet
final
samplingRate int
samplingRate is the number samples per second
no setter
udfConvert List<List<double>>? Function({required int channelCount, required List<int> event, required int sampleCount})
final
udfFilter Channels Function({required int channelCount, required Channels channels, required DataFilter dataFilter, required bool isAttached, required int sampleCount})
final
udfLeadCompute LeadState? Function({required List<int> event})
final
udfLeadStream Stream<List<int>> Function({required ModuleEcg ecg})
final
udfRawStream Stream<List<int>> Function({required ModuleEcg ecg})
final

Methods

initStream() → void
////////////////////////////////////////////////////////////////////
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() Future<void>
pause
resetPlot() → void
start() Future<void>
stop() Future<void>
stop sends stop_ecg_packet to device.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited