validateZone function

void validateZone()

Validates that storeZone was called before zonedExpect was.

Implementation

void validateZone() {
  if (_zone == null) {
    throw StateError('Need to call storeZone() first.');
  }
}