characters function

TextGenerator characters({
  1. String? codec,
  2. int? minCodepoint,
  3. int? maxCodepoint,
  4. List<String>? categories,
  5. List<String>? excludeCategories,
  6. String? includeCharacters,
  7. String? excludeCharacters,
})

Generates single characters, drawn the way text draws them.

One character, so one code point -- which is a Dart string of one or two code units, since Dart has no character type and a String is what a character is. Takes the same alphabet arguments as text and none of its lengths.

Implementation

TextGenerator characters({
  String? codec,
  int? minCodepoint,
  int? maxCodepoint,
  List<String>? categories,
  List<String>? excludeCategories,
  String? includeCharacters,
  String? excludeCharacters,
}) => TextGenerator._((
  minLength: 1,
  maxLength: 1,
  codec: codec,
  minCodepoint: minCodepoint,
  maxCodepoint: maxCodepoint,
  categories: _copyOf(categories),
  excludeCategories: _copyOf(excludeCategories),
  includeCharacters: includeCharacters,
  excludeCharacters: excludeCharacters,
));