RTimeOfDay extension

on

Properties

isAm bool
  • true if the date in the morning, false otherwise.
  • no setter
    isPm bool
  • true if the date in the evening, false otherwise.
  • no setter

    Methods

    copyWith({int? hour, int? minute}) TimeOfDay
  • creates a new time of day with the same hour and minute,overridden by the parameters
  • isAfter(TimeOfDay other) bool
  • true if after other, false otherwise.
  • isBefore(TimeOfDay other) bool
  • true if before other, false otherwise.
  • isBetween(TimeOfDay start, TimeOfDay end) bool
  • true if between start and end