DateElement class

blueprint that open date picker to pick your date

id : String,should be unique. initDate : (DateTime) initialize the input field. firstDate : (DateTime) represent earliest allowable Date in date picker. lastDate : (DateTime) represent latest allowable Date in date picker. format : (DateFormat) for format the date that you pick (default :DateFormat.yMd()). selectableDayPredicate : (SelectableDayPredicate) to enable dates to be selected. label : (String) text label of TextField. decorationElement :input decoration of TextField. hint : (String) hint text of textField. isRequired : (bool) if true,make this field required. errorMsg : (String) show error message when the field isn't validate. padding : (EdgeInsets) padding of textField.

Inheritance

Constructors

DateElement({String? id, DateFormat? format, DateTime? initDate, DateTime? firstDate, DateTime? lastDate, SelectableDayPredicate? selectableDayPredicate, String? label, Icon suffixIcon = const Icon(Icons.calendar_today, color: Colors.black, size: 24), DecorationElement? decorationElement, String? hint, bool isRequired = false, String? errorMsg, EdgeInsets padding = const EdgeInsets.all(0)})

Properties

decorationElement DecorationElement?
final
error String?
finalinherited
errorMsg String?
final
firstDate DateTime?
final
format → DateFormat?
final
hashCode int
The hash code for this object.
no setterinherited
hint String?
final
id String?
final
initDate DateTime?
final
initValue String?
finalinherited
isRequired bool
final
label String?
final
lastDate DateTime?
final
onTap Function?
finalinherited
padding EdgeInsets
final
readOnly bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectableDayPredicate SelectableDayPredicate?
final
suffixIcon Icon
final
typeInput TypeInput
finalinherited
validator Validation?
finalinherited
visibility bool
finalinherited

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