write method
Is called when a value has to be encoded.
Implementation
@override
void write(BinaryWriter writer, HiveCacheImage obj) {
writer
..writeByte(2)
..writeByte(0)
..write(obj.url)
..writeByte(1)
..write(obj.binaryImage);
}