ChartTypeSwitchResult class

Non-throwing result for a requested chart-type switch.

Use this from UI/runtime code when a switch may be driven by user input. It carries the same compatibility decision as ChartSwitchCompatibility plus the adapted payload when switching is safe.

Constructors

ChartTypeSwitchResult({required bool success, required ChartType targetType, required ChartSwitchCompatibility compatibility, required Map<String, dynamic>? payload, required bool usedForceConversion, required List<String> preservedRuntimeKeys, required List<String> changedTopLevelKeys, required String message})
const

Properties

changedTopLevelKeys List<String>
final
compatibility ChartSwitchCompatibility
final
hashCode int
The hash code for this object.
no setterinherited
isLossless bool
no setter
message String
final
payload Map<String, dynamic>?
final
preservedRuntimeKeys List<String>
final
requiresForce bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourceShape ChartSeriesDataShape
no setter
success bool
final
targetShape ChartSeriesDataShape
no setter
targetType ChartType
final
targetTypeString String
no setter
usedForceConversion bool
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson({bool includePayload = false}) Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited