MapOp constructor
MapOp({
- @required dynamic input,
- String? as,
- @required dynamic inExpr,
Creates $map
operator expression
input
- An expression that resolves to an array.as
- Optional. A name for the variable that represents each individual element of the input array. If no name is specified, the variable name defaults tothis
.inExpr
- An expression that is applied to each element of the input array. The expression references each element individually with the variable
Implementation
MapOp({@required input, String? as, @required inExpr})
: super(
'map',
AEObject({
'input': input is List ? AEList(input) : input,
if (as != null) 'as': as,
'in': inExpr
}));