Function: toDart()
function toDart(block, generator): [string, Order];
Defined in: plugins/field-colour/src/blocks/colourRandom.ts:64
Dart block generator function.
Parameters
| Parameter | Type | Description |
|---|---|---|
block | Block | The Block instance to generate code for. |
generator | DartGenerator | The DartGenerator calling the function. |
Returns
[string, Order]
A tuple containing the code string and precedence.