DayPartController class
Constructors
-
DayPartController({List<
DayPartInfo> listDayParts = const [DayPartInfo(dayPart: DayParts.morning, start: 5, end: 12), DayPartInfo(dayPart: DayParts.afternoon, start: 12, end: 18), DayPartInfo(dayPart: DayParts.evening, start: 18, end: 22), DayPartInfo(dayPart: DayParts.night, start: 22, end: 5)]})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
listDayParts
→ List<
DayPartInfo> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getDayPartName(
{required DayParts dayPart}) → String -
getDayPartOfTime(
{required DateTime time}) → DayParts? -
getSlotTimesListMap(
{required List< DateTime> listDates}) → Map<String, List< DateTime> > -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited