DateTimeUtils class Null safety

Date time utils.

Constructors

DateTimeUtils()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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 Properties

DATE_FORMAT DateFormat
final
DATE_FORMAT_DAYS DateFormat
final
DATE_FORMAT_DAYS_MONTH DateFormat
final

Static Methods

countDays(int year, int month) int
Counts days in months.
currentMillis() int
Gets current millis.
firstDay(int year, int month) DateTime
Gets first day in month.
getDays(int year, int month) List<DateTime>
Gets days in month.
getReadable(DateTime date) String
Gets readable.
getReadableRange(DateTimeRange range) String
Gets readable range.
lastDay(int year, int month) DateTime
Gets last day in month.
openDatePicker(DataCallback? callback, {DateTime? date, DateTime? firstDate, DateTime? lastDate}) Future<void>
Opens date picker.
openDateRangePicker(DataCallback? callback, {DateTimeRange? dateRange, DateTime? firstDate, DateTime? lastDate}) Future<void>
Opens date range picker.
openMonthPicker(DataCallback? callback, {DateTime? date, DateTime? firstDate, DateTime? lastDate}) Future<void>
Opens month picker.