Commit e65fd76e authored by Chinmay Garde's avatar Chinmay Garde

Since params are usually created to be edited later, make the initial value optional

parent eedbb4f1
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment