CardSymbol class

A CardSymbol object represents an illustrated symbol that may appear in card’s mana cost or Oracle text.

Symbols are based on the notation used in the Comprehensive Rules.

For more information about how the Scryfall API represents mana and costs, see the colors and costs overview.

Annotations
  • @JsonSerializable()

Constructors

CardSymbol({required String symbol, String? looseVariant, required String english, required bool transposable, required bool representsMana, double? cmc, required bool appearsInManaCosts, required bool funny, required List<Color> colors, List<String>? gathererAlternates, Uri? svgUri})
Constructs a CardSymbol by settings its properties.
const
CardSymbol.fromJson(Map<String, dynamic> json)
Constructs a CardSymbol from JSON.
factory

Properties

appearsInManaCosts bool
True if this symbol appears in a mana cost on any Magic card.
final
cmc double?
A decimal number representing this symbol’s converted mana cost.
final
colors List<Color>
A List of colors that this symbol represents.
final
english String
An English snippet that describes this symbol.
final
funny bool
True if this symbol is only used on funny cards or Un-cards.
final
gathererAlternates List<String>?
A List of plaintext versions of this symbol that Gatherer uses on old cards to describe original printed text.
final
hashCode int
The hash code for this object.
no setterinherited
looseVariant String?
An alternate version of this symbol, if it is possible to write it without curly braces.
final
representsMana bool
True if this is a mana symbol.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
svgUri Uri?
A URI to an SVG image of this symbol on Scryfall’s CDNs.
final
symbol String
The plaintext symbol.
final
transposable bool
True if it is possible to write this symbol “backwards”.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited