Expression constructor
Expression({
- double? constant,
- String? variable,
- Condition? condition,
- GeoDistance? geoDistance,
- String? datetime,
- 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,
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;
}