write method
Is called when a value has to be encoded.
Implementation
@override
void write(BinaryWriter writer, Cryptocurrency obj) {
writer
..writeByte(11)
..writeByte(0)
..write(obj.id)
..writeByte(1)
..write(obj.name)
..writeByte(2)
..write(obj.symbol)
..writeByte(3)
..write(obj.image)
..writeByte(4)
..write(obj.currentPriceUSD)
..writeByte(5)
..write(obj.marketCap)
..writeByte(6)
..write(obj.marketCapRank)
..writeByte(7)
..write(obj.totalVolume)
..writeByte(8)
..write(obj.priceChange24h)
..writeByte(9)
..write(obj.totalSupply)
..writeByte(10)
..write(obj.isFavorite);
}