read method
Is called when a value has to be decoded.
Implementation
@override
TimeOfDay read(BinaryReader reader) {
final totalMinutes = reader.readInt();
return TimeOfDay(hour: totalMinutes ~/ 60, minute: totalMinutes % 60);
}
Is called when a value has to be decoded.
@override
TimeOfDay read(BinaryReader reader) {
final totalMinutes = reader.readInt();
return TimeOfDay(hour: totalMinutes ~/ 60, minute: totalMinutes % 60);
}