getDefinition method
Retrieves a specific character definition.
character
The character to find the definition for.
Returns the CharacterDefinition for the specified character, or null if not found.
Implementation
CharacterDefinition? getDefinition(final String character) {
try {
return _definitions.firstWhere((t) => t.character == character);
} catch (e) {
return null;
}
}