util/card_parsing library

Functions

parseLoyalty(String? loyalty) TextSpan?
Parses a loyalty value (e.g., "3", "X") and returns a TextSpan.
parseManaCostString(String? manaCost, {EdgeInsets? padding = const EdgeInsets.symmetric(horizontal: 1.5)}) List<Widget>?
Parses a mana cost string and returns a list of widgets representing the mana symbols.
parseOracleTextString(String? oracleText) TextSpan?
Parses an OracleText string and returns a TextSpan with embedded mana symbols and other MTG symbols.
parsePowerToughness(String? powerToughness) TextSpan?
Parses a power/toughness string (e.g., "2/3", "*/4") and returns a TextSpan.