generate static method

MissingPropertyException generate(
  1. String objectName,
  2. String propertyName
)

Implementation

static MissingPropertyException generate(
    String objectName, String propertyName) {
  final message = ErrorMessages.format(
      ErrorMessages.missingProperty, [objectName, propertyName]);
  return MissingPropertyException(message);
}