NUIDTUtil class

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

dateSelect(BuildContext context, {DateTime? selectedDate, DateTime? firstDate, DateTime? lastDate, DatePickerEntryMode initialEntryMode = DatePickerEntryMode.calendar, DatePickerMode initialDatePickerMode = DatePickerMode.day, DateFiltering? dateFiltering, String helpText = "Select date", String cancelText = "Cancel", String confirmText = "Confirm", String invalidText = "Enter a valid date", String fieldLabelText = "Date", String fieldHintText = "yyyy/mm/dd", DateSelectListener? selectListener}) Future<DateTime?>
dateToString(DateTime date, {String format = "yyyy-MM-dd"}) String
detectDateFormat(String dateString) String
endOfDay() DateTime
firstDayOfMonth({int? month, int? year}) DateTime
formatTime(BuildContext context, TimeOfDay timeOfDay, {bool use24HourFormat = true}) String
getDateDiffAsString(DateTime previousTime, {DateTime? currentDate, String dateFormat = FORMAT_EEE_MMM_d_yyy}) String
getDatesBetween(DateTime date1, DateTime date2, {bool inclusive = true}) List<DateTime>
getDatesBetweenInString(DateTime date1, DateTime date2, {String dateFormat = FORMAT_yyyy_MM_dd, bool inclusive = true}) List<String>
getDateTimeDiffAsString(DateTime previousTime, {DateTime? currentDate}) String
getDateTimeDiffInShort(DateTime previousTime, {DateTime? currentDate}) String
getDateTimeDiffShort(DateTime previousTime, {DateTime? currentDate}) → dynamic
getTimeDiffInLong(DateTime previousDate, {DateTime? currentDate, String dateFormat = FORMAT_dd_MMM_yyyy}) int
isSameDay(DateTime date1, DateTime date2) bool
isThisMonth(DateTime date) bool
isThisWeek(DateTime date) bool
isToday(DateTime date) bool
isWithin24Hrs(DateTime date) bool
lastDayOfMonth({int? month, int? year}) DateTime
startOfDay() DateTime
stringToDate(String dateString, {String? dateFormat}) DateTime?
timeSelect(BuildContext context, {TimeOfDay? initialTime, TimePickerEntryMode initialEntryMode = TimePickerEntryMode.dial, String helpText = "Select time", String cancelText = "Cancel", String confirmText = "Confirm", bool is24HourFormat = false, TimeSelectListener? selectListener}) Future<TimeOfDay?>