checkMandatoryProperty method

void checkMandatoryProperty(
  1. String name
)

Checks if the property with the given name is present.

Throws FormatException when the property is missing.

Implementation

void checkMandatoryProperty(String name) {
  if (this[name] == null) {
    throw FormatException('Mandatory property "$name" is missing.');
  }
}