Closed palkerecsenyi closed 3 years ago
We have a class ClubTime that looks something like this:
ClubTime
enum DayOfWeek { Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday } class ClubTime { DayOfWeek dayOfWeek; TimeOfDay time; }
Add an instance method to the ClubTime class to convert the class instance to a user-friendly string (e.g. 'Every Tuesday at 1:30PM'). I've added a comment to club_time.dart to show you where you need to add this method.
club_time.dart
We have a class
ClubTime
that looks something like this:Add an instance method to the
ClubTime
class to convert the class instance to a user-friendly string (e.g. 'Every Tuesday at 1:30PM'). I've added a comment toclub_time.dart
to show you where you need to add this method.