with Expression
fun <B : NormalBlock> B.withExpression(name: String, expression: Expression? = null, shadowExpression: ShadowExpression? = null): B
Adds an expression input to a block.
Parameters
name
The name of the input.
expression
The expression to add.
shadow Expression
The shadow expression to use if the main expression is null. Unless it is null, it will always be included as a shadow.