StatementValidator typedef Null safety

StatementValidator = bool Function(String text)

Returns true if text is a complete statement or false otherwise.

Implementation

typedef bool StatementValidator(String text);