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

This commit is contained in:
Chinmay Garde
2015-06-26 12:20:02 -07:00
parent eedbb4f167
commit e65fd76ead

View File

@@ -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;