ChartPayloadContract class
Registry-owned payload contract for a chart type.
Keep JSON collection shortcuts here so validators, runtime switchers, and developer tooling do not grow independent chart-type switch statements.
Constructors
-
ChartPayloadContract({required ChartType type, required ChartSeriesDataShape dataShape, required ChartPayloadSeriesStrategy seriesStrategy, List<
String> dataFieldPriority = const [], String? namedCollectionField, bool requiresSeries = true, bool usesExternalDataModel = false}) -
const
Properties
-
dataFieldPriority
→ List<
String> -
final
- dataShape → ChartSeriesDataShape
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- namedCollectionField → String?
-
final
- requiresSeries → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- seriesStrategy → ChartPayloadSeriesStrategy
-
final
- supportsShorthandCollections → bool
-
no setter
- type → ChartType
-
final
- typeString → String
-
no setter
- usesExternalDataModel → bool
-
final
Methods
-
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