FormulaEntry class

A single formula entry with its parsed expression, color, and parameters.

Constructors

FormulaEntry({required String rawExpression, MathExpression? parsed, Color color = Colors.blue, bool autoColor = true, bool visible = true, Map<String, double> parameterValues = const {}, double? domainMin, double? domainMax, bool includeDomainMin = true, bool includeDomainMax = true, String domainMinExpression = '', String domainMaxExpression = '', String? identity})
const

Properties

autoColor → bool
Whether this color was auto-assigned (vs. user-set).
final
color → Color
Rendering color.
final
domainMax → double?
final
domainMaxExpression → String
final
domainMin → double?
Optional numeric x interval resolved from the formula's endpoint inputs.
final
domainMinExpression → String
final
hashCode → int
The hash code for this object.
no setterinherited
identity → String?
final
includeDomainMax → bool
final
includeDomainMin → bool
final
isValid → bool
no setter
parameterValues → Map<String, double>
Current parameter values (only relevant if parsed has parameters).
final
parsed → MathExpression?
Parsed expression (null if invalid or empty).
final
rawExpression → String
Raw user input (e.g. "x^2", "sin(x)").
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
visible → bool
Whether this formula row is currently included when plotting.
final

Methods

copyWith({String? rawExpression, MathExpression? parsed, bool clearParsed = false, Color? color, bool? autoColor, bool? visible, Map<String, double>? parameterValues, double? domainMin, double? domainMax, bool clearDomainMin = false, bool clearDomainMax = false, bool? includeDomainMin, bool? includeDomainMax, String? domainMinExpression, String? domainMaxExpression, String? identity}) → FormulaEntry
Create a copy with optionally overridden fields.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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