GaspardMerten / date_field

Flutter DateField and DateFormField
Other
46 stars 32 forks source link

Make DateTimeFormField.onChanged not required #67

Closed torbenkeller closed 7 months ago

torbenkeller commented 7 months ago

The current value of the DateTimeFormField can be accessed using a key. In this case onChange may be null and to require the property in this context produces unnecessary boilerplate

torbenkeller commented 7 months ago

When passing null to onChangethe field will be deactivated. This is consistant to other widgets in Flutter.