ManaCost class

The result when requesting Scryfall to parse some mana.

Annotations
  • @JsonSerializable()

Constructors

ManaCost({required String cost, required double cmc, required List<Color> colors, required bool colorless, required bool monocolored, required bool multicolored})
Constructs a ManaCost by setting its properties.
const
ManaCost.fromJson(Map<String, dynamic> json)
Constructs a ManaCost from JSON.
factory

Properties

cmc double
The converted mana cost.
final
colorless bool
True if the cost is colorless.
final
colors List<Color>
The colors of the given cost.
final
cost String
The normalized cost, with correctly-ordered and wrapped mana symbols.
final
hashCode int
The hash code for this object.
no setterinherited
monocolored bool
True if the cost is monocolored.
final
multicolored bool
True if the cost is multicolored.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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