validateContent method
void
validateContent()
Implementation
void validateContent() {
if (!RegExp(r'^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*)+$')
.hasMatch(contentType)) {
throw ArgumentError.value(
contentType,
'contentType',
'Use a namespaced content type',
);
}
if (slotId.trim().isEmpty) {
throw ArgumentError('A content region requires a slot ID');
}
}