requireText method
inherited
Implementation
void requireText(
EntityDef entity,
LevelScope scope,
List<LevelIssue> out,
String key,
) {
final value = entity.string(key);
if (value != null && value.isNotEmpty) return;
out.add(
LevelIssue(
LevelIssueSeverity.error,
'has no "$key", so there would be nothing to show',
where: scope.describe(entity),
),
);
}