KChartWidget class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- KChartWidget
Constructors
-
KChartWidget.new(List<
KLineEntity> ? datas, {ChartStyle? chartStyle, ChartColors? chartColors, bool enableTheme = true, required bool isTrendLine, double xFrontPadding = 100, MainState mainState = MainState.MA, SecondaryState secondaryState = SecondaryState.MACD, dynamic onSecondaryTap()?, bool volHidden = false, bool isLine = false, bool isTapShowInfoDialog = false, bool hideGrid = false, bool isChinese = false, bool showNowPrice = true, bool showInfoDialog = true, bool materialInfoDialog = true, Map<String, ChartTranslations> translations = kChartTranslations, List<String> timeFormat = TimeFormat.YEAR_MONTH_DAY, dynamic onLoadMore(bool)?, int fixedLength = 2, List<int> maDayList = const [5, 10, 20], int flingTime = 350, double flingRatio = 0.9, Curve flingCurve = Curves.easeOutCubic, dynamic isOnDrag(bool)?, VerticalTextAlignment verticalTextAlignment = VerticalTextAlignment.left, bool enableDrawingTools = false, DrawingToolManager? drawingToolManager, double minScale = 0.1, double maxScale = 5.0, double scaleAnimationDuration = 300.0, Curve scaleAnimationCurve = Curves.easeOutCubic, bool enableScaleAnimation = true, dynamic onScaleChanged(double)?, bool enableBoundaryFeedback = true, double scaleSensitivity = 2.5, bool enableScaleCenterPoint = true, KChartController? controller, bool enablePerformanceMode = false, bool enablePinchZoom = true, bool enableScrollZoom = true, double scrollZoomFactor = 1.1, bool enableScaleHapticFeedback = true, dynamic onCrossLineTap(double price)?, bool enableHapticFeedback = true, bool longPressHaptic = true, bool crossLineTapHaptic = true, bool scaleHaptic = false, bool boundaryHaptic = true})
Properties
- boundaryHaptic → bool
-
final
- chartColors → ChartColors?
-
final
- chartStyle → ChartStyle?
-
final
- controller → KChartController?
-
final
- crossLineTapHaptic → bool
-
final
-
datas
→ List<
KLineEntity> ? -
final
- drawingToolManager → DrawingToolManager?
-
final
- enableBoundaryFeedback → bool
-
final
- enableDrawingTools → bool
-
final
- enableHapticFeedback → bool
-
final
- enablePerformanceMode → bool
-
final
- enablePinchZoom → bool
-
final
- enableScaleAnimation → bool
-
final
- enableScaleCenterPoint → bool
-
final
- enableScaleHapticFeedback → bool
-
final
- enableScrollZoom → bool
-
final
- enableTheme → bool
-
final
- fixedLength → int
-
final
- flingCurve → Curve
-
final
- flingRatio → double
-
final
- flingTime → int
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hideGrid → bool
-
final
- isChinese → bool
-
final
- isLine → bool
-
final
- isOnDrag → dynamic Function(bool)?
-
final
- isTapShowInfoDialog → bool
-
final
- isTrendLine → bool
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- longPressHaptic → bool
-
final
-
maDayList
→ List<
int> -
final
- mainState → MainState
-
final
- materialInfoDialog → bool
-
final
- maxScale → double
-
final
- minScale → double
-
final
- onCrossLineTap → dynamic Function(double price)?
-
final
- onLoadMore → dynamic Function(bool)?
-
final
- onScaleChanged → dynamic Function(double)?
-
final
- onSecondaryTap → dynamic Function()?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scaleAnimationCurve → Curve
-
final
- scaleAnimationDuration → double
-
final
- scaleHaptic → bool
-
final
- scaleSensitivity → double
-
final
- scrollZoomFactor → double
-
final
- secondaryState → SecondaryState
-
final
- showInfoDialog → bool
-
final
- showNowPrice → bool
-
final
-
timeFormat
→ List<
String> -
final
-
translations
→ Map<
String, ChartTranslations> -
final
- verticalTextAlignment → VerticalTextAlignment
-
final
- volHidden → bool
-
final
- xFrontPadding → double
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _KChartWidgetState -
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