The objective of this PR is to allow using the DateTimeField without forcing both Material and Cupertino delegates.
currently, the assertions in _DateTimeFieldState.build are making sure both have defined delegates even when choosing a specific pickerPlatform.
I've moved the assertions into a separate method, where each is asserted conditionally.
The objective of this PR is to allow using the
DateTimeField
without forcing both Material and Cupertino delegates. currently, the assertions in_DateTimeFieldState.build
are making sure both have defined delegates even when choosing a specificpickerPlatform
.I've moved the assertions into a separate method, where each is asserted conditionally.