write method
Is called when a value has to be encoded.
Implementation
@override
void write(BinaryWriter writer, TimeOfDay obj) {
writer.writeInt(obj.hour * 60 + obj.minute);
}
Is called when a value has to be encoded.
@override
void write(BinaryWriter writer, TimeOfDay obj) {
writer.writeInt(obj.hour * 60 + obj.minute);
}