blockly > Field > getText_

Field.getText_() method

A developer hook to override the returned text of this field. Override if the text representation of the value of this field is not just a string cast of its value. Return null to resort to a string cast.

Signature:

protected getText_(): string | null;

Returns:

string | null

Current text or null.