PriceRange class
Defines the minimum and maximum price range in a given viewport or series.
- Annotations
Constructors
- PriceRange(double min, double max)
-
const
-
PriceRange.fromCandles(List<
Candle> candles, {int? start, int? end}) -
Calculates the price range spanning a list of
candleswithin optionalstartandendindices.factory
Properties
Methods
-
applyVerticalScaleAndPan(
{double scale = 1.0, double pan = 0.0}) → PriceRange - Applies vertical scaling factor (scale > 1 expands span / zooms out, scale < 1 contracts span / zooms in) and vertical pan offset.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
withPadding(
{double topPaddingPercent = 0.08, double bottomPaddingPercent = 0.08}) → PriceRange - Returns a new PriceRange with proportional top and bottom padding.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- zero → const PriceRange
- Empty or default zero price range.