Utils class

Constructors

Utils()

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

apiDayFormat(DateTime d) String
daysInMonth(DateTime month) List<DateTime>
The list of days in a given month
daysInRange(DateTime start, DateTime end) Iterable<DateTime>
Returns a DateTime for each day the given range.
firstDayOfMonth(DateTime month) DateTime
firstDayOfWeek(DateTime day) DateTime
formatDay(DateTime d) String
formatFirstDay(DateTime d) String
formatMonth(DateTime d) String
fullDayFormat(DateTime d) String
isFirstDayOfMonth(DateTime day) bool
isLastDayOfMonth(DateTime day) bool
isSameDay(DateTime a, DateTime b) bool
Whether or not two times are on the same day.
isSameWeek(DateTime a, DateTime b) bool
lastDayOfMonth(DateTime month) DateTime
The last day of a given month
lastDayOfWeek(DateTime day) DateTime
nextMonth(DateTime m) DateTime
nextWeek(DateTime w) DateTime
previousMonth(DateTime m) DateTime
previousWeek(DateTime w) DateTime

Constants

weekdays → const List<String>