DateTimes class Null safety

Constructors

DateTimes()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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 Methods

datePicker({required BuildContext context, required dynamic dateTime(String date), String? date, String? minDate, String? maxDate, String format = DateTimes.fyyyyMMdd}) → dynamic
dateTimeToString({required DateTime date, String format = DateTimes.fyyyyMMdd}) String
getCurrentDateTime({String format = DateTimes.fyyyyMMdd}) String
reverseDate({required String date, String dateFormat = DateTimes.fyyyyMMdd}) String
setValidDate({required String fromDate, required String toDate}) String
stringToDateTime({required String date, String format = DateTimes.fyyyyMMdd}) DateTime
validDateRange({required String fromDate, required String toDate}) bool

Constants

fE → const String
"E"
fEE → const String
"EE"
fyyyy → const String
"yyyy"
fyyyyMMdd → const String
"yyyy-MM-dd"
fyyyyMMddHHmmss → const String
"yyyy-MM-dd HH:mm:ss"