requireText method
Implementation
TextElementDefinition requireText(String type) =>
textTypes[type] ?? (throw StateError('No text definition for $type.'));
TextElementDefinition requireText(String type) =>
textTypes[type] ?? (throw StateError('No text definition for $type.'));