FftMonitor class

FftMonitor displays real-time frequency spectrum (FFT) for ECG signals, allowing visual comparison of Raw (unfiltered) vs Filtered signals to verify the removal of mains hum (50/60 Hz), low-pass, and baseline wander noise.

Inheritance
Available extensions
Annotations
  • @CopyWith.new()

Constructors

FftMonitor({required ModuleInterface module, Key? key, int channelIndex = 1, bool isRawVisible = true, bool isFilteredVisible = true, bool isDbScale = true, double maxFrequency = 100.0, double? maxMagnitude, bool isShowGrid = true, bool isShowNotchMarkers = true, bool isShowLegend = true, Color rawColor = const Color(0xFFFF9800), Color filteredColor = const Color(0xFF2196F3), Color gridColor = const Color(0x339E9E9E), Color backgroundColor = Colors.transparent, double width = double.infinity, double height = 180, String? title, double strokeWidth = 1.8, Widget wrapperWidget(FftResult? rawFft, FftResult? filterFft)?})
const

Properties

backgroundColor → Color
final
channelIndex → int
final
copyWith → _$FftMonitorCWProxy

Available on FftMonitor, provided by the $FftMonitorCopyWith extension

Returns a callable class used to build a new instance with modified fields. Example: instanceOfFftMonitor.copyWith(...) or instanceOfFftMonitor.copyWith.fieldName(...).
no setter
filteredColor → Color
final
gridColor → Color
final
hashCode → int
The hash code for this object.
no setterinherited
height → double
final
isDbScale → bool
final
isFilteredVisible → bool
final
isRawVisible → bool
final
isShowGrid → bool
final
isShowLegend → bool
final
isShowNotchMarkers → bool
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
maxFrequency → double
final
maxMagnitude → double?
final
module → ModuleInterface
final
rawColor → Color
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
strokeWidth → double
final
title → String?
final
width → double
final
wrapperWidget → Widget Function(FftResult? rawFft, FftResult? filterFft)?
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<FftMonitor>
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
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, int wrapWidth = 65}) → 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