write method

  1. @override
void write(
  1. BinaryWriter writer,
  2. TimeOfDay obj
)
override

Is called when a value has to be encoded.

Implementation

@override
void write(BinaryWriter writer, TimeOfDay obj) {
  writer.writeInt(obj.hour * 60 + obj.minute);
}