Expression constructor

Expression({
  1. double? constant,
  2. String? variable,
  3. Condition? condition,
  4. GeoDistance? geoDistance,
  5. String? datetime,
  6. String? datetimeKey,
  7. MultExpression? mult,
  8. SumExpression? sum,
  9. DivExpression? div,
  10. Expression? neg,
  11. Expression? abs,
  12. Expression? sqrt,
  13. PowExpression? pow,
  14. Expression? exp,
  15. Expression? log10,
  16. Expression? ln,
  17. DecayParamsExpression? expDecay,
  18. DecayParamsExpression? gaussDecay,
  19. DecayParamsExpression? linDecay,
})

Implementation

factory Expression({
  $core.double? constant,
  $core.String? variable,
  Condition? condition,
  GeoDistance? geoDistance,
  $core.String? datetime,
  $core.String? datetimeKey,
  MultExpression? mult,
  SumExpression? sum,
  DivExpression? div,
  Expression? neg,
  Expression? abs,
  Expression? sqrt,
  PowExpression? pow,
  Expression? exp,
  Expression? log10,
  Expression? ln,
  DecayParamsExpression? expDecay,
  DecayParamsExpression? gaussDecay,
  DecayParamsExpression? linDecay,
}) {
  final $result = create();
  if (constant != null) {
    $result.constant = constant;
  }
  if (variable != null) {
    $result.variable = variable;
  }
  if (condition != null) {
    $result.condition = condition;
  }
  if (geoDistance != null) {
    $result.geoDistance = geoDistance;
  }
  if (datetime != null) {
    $result.datetime = datetime;
  }
  if (datetimeKey != null) {
    $result.datetimeKey = datetimeKey;
  }
  if (mult != null) {
    $result.mult = mult;
  }
  if (sum != null) {
    $result.sum = sum;
  }
  if (div != null) {
    $result.div = div;
  }
  if (neg != null) {
    $result.neg = neg;
  }
  if (abs != null) {
    $result.abs = abs;
  }
  if (sqrt != null) {
    $result.sqrt = sqrt;
  }
  if (pow != null) {
    $result.pow = pow;
  }
  if (exp != null) {
    $result.exp = exp;
  }
  if (log10 != null) {
    $result.log10 = log10;
  }
  if (ln != null) {
    $result.ln = ln;
  }
  if (expDecay != null) {
    $result.expDecay = expDecay;
  }
  if (gaussDecay != null) {
    $result.gaussDecay = gaussDecay;
  }
  if (linDecay != null) {
    $result.linDecay = linDecay;
  }
  return $result;
}