validate abstract method

void validate(
  1. bool isDefined(
    1. String variable
    )
)

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);