validate abstract method
Throws a FormatException if any variables are undefined.
The isDefined function should return true for any variables that are
considered valid, and false for any invalid or undefined variables.
Implementation
void validate(bool Function(String variable) isDefined);