DateUtilsCB class
contails all the logic of this calendar_builder package
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Static Methods
-
checkDayisDisabled(
{required List< DateTime> listOfDates, required DateTime date}) → bool -
Checking for
date
inlistOfDates
if it contains the same date then it returns true else returns false -
checkDayisSelected(
{bool isDisabled = false, required DateTime dateSelected, required DateTime loopedDay}) → bool -
Checking for
dateSelected
inloopedDays
if it contains the same date then it returns true else returns false -
checkListContainsDate(
{required List< DateTime> listOfDates, required DateTime date}) → bool -
checking
listOfDates
has matchingdate
in it -
checkYearisDisabled(
{required List< DateTime> listOfDates, required DateTime date}) → bool -
Checking for
date
inlistOfDates
if it contains the same year then it returns false else returns true -
checkYearIsSelected(
{bool isDisabled = false, required DateTime dateSelected, required DateTime loopedDay}) → bool - check year is selected
-
getAll42DaysIn1Month(
{required List< DateTime> month, WeekStartsFrom weekStartsFrom = WeekStartsFrom.sunday}) → List<DateTime> - This getAll42DaysIn1Month function will return all the 42 days in a m
-
getAllDaysInBetweenYears(
{required DateTime startDate, required DateTime endDate}) → List< DateTime> -
this function return all the dates in a year from
startDate - endDate
ifendDate = DateTime(2021,3,3)
this function will return dates tillendDate
asDateTime(2022).subtract(Duration
-
getAllMonthsIn1Year(
{required DateTime selectedYear}) → List< Map< String, List< >DateTime> > -
!latest removed #1
If
selectedYear
is 2021 then this function will return all the dates of months in 2021 in the form of List<Map<String, List<DateTime>>> -
getDaysInBeteween(
{required DateTime startDate, required DateTime endDate}) → List< DateTime> -
returns all dates from
startDate - endDate
in the form of List of DateTime -
getYearsInBeteween(
{required DateTime startDate, required DateTime endDate}) → List< DateTime> -
returns all Years from
startDate - endDate
in the form of List of DateTime