BusinessDayConfig class
Configuration for business day calculations.
Constructors
-
BusinessDayConfig({Set<
int> weekendDays = const {DateTime.saturday, DateTime.sunday}, HolidayCalendar holidays = const HolidayCalendar.empty()}) -
Creates a business day configuration.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- holidays → HolidayCalendar
-
Holiday calendar to use.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
weekendDays
→ Set<
int> -
Days of the week considered as weekend (1=Monday, 7=Sunday).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
withHolidays(
HolidayCalendar holidays) → BusinessDayConfig - Creates a new config with custom holidays.
-
withWeekends(
Set< int> weekendDays) → BusinessDayConfig - Creates a new config with custom weekend days.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- middleEast → const BusinessDayConfig
- Middle Eastern configuration (Friday and Saturday as weekends).
- standard → const BusinessDayConfig
- Default configuration (Saturday and Sunday as weekends, no holidays).