Since params are usually created to be edited later, make the initial value optional
This commit is contained in:
@@ -8,7 +8,7 @@ class Param extends _EquationMember {
|
||||
final Variable variable;
|
||||
|
||||
Param.withVariable(this.variable);
|
||||
Param(double value) : this.variable = new Variable(value);
|
||||
Param([double value = 0.0]) : this.variable = new Variable(value);
|
||||
|
||||
bool get isConstant => false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user