DrawingPoint class
A geometric anchor point in chart coordinates (index and price). Using candle index and price ensures drawings remain pinned to the exact financial levels across zooming, panning, and new tick arrivals.
Constructors
- DrawingPoint({required int candleIndex, required double price, DateTime? timestamp})
-
const
-
DrawingPoint.fromJson(Map<
String, dynamic> json) -
factory
Properties
- candleIndex → int
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- price → double
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timestamp → DateTime?
-
final
Methods
-
copyWith(
{int? candleIndex, double? price, DateTime? timestamp}) → DrawingPoint -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited