isRequired method

bool isRequired(
  1. String name
)

A schema contains this property A property name

Implementation

bool isRequired(String name) {
  if ((required ?? const []).contains(name)) return true;
  return false;
}