requireText method

TextElementDefinition requireText(
  1. String type
)

Implementation

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