HeartBPMDialog class

Obtains heart beats per minute using camera sensor

Using the smartphone camera, the widget estimates the skin tone variations over time. These variations are due to the blood flow in the arteries present below the skin of the fingertips.

Inheritance

Constructors

HeartBPMDialog({Key? key, required BuildContext context, int sampleDelay = 2000 ~/ 30, required void onBPM(int), void onRawData(SensorValue)?, double alpha = 0.8, Widget? child, Widget? centerLoadingWidget, double? cameraWidgetHeight, double? cameraWidgetWidth, bool? showTextValues, double? borderRadius})
Obtains heart beats per minute using camera sensor

Properties

alpha double
Smoothing factor
getter/setter pair
borderRadius double?
final
cameraWidgetHeight double?
final
cameraWidgetWidth double?
final
centerLoadingWidget Widget?
This is the Loading widget, A developer has to customize it.
final
child Widget?
Additional child widget to display
final
context BuildContext
Parent context
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onBPM → void Function(int)
Callback used to notify the caller of updated BPM measurement
final
onRawData → (void Function(SensorValue)?)
Callback used to notify the caller of updated raw data sample
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sampleDelay int
Camera sampling rate in milliseconds
final
showTextValues bool?
getter/setter pair

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _HeartBPPView
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAlpha(double a) → void
Set the smoothing factor for exponential averaging
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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