updateDate method

void updateDate(
  1. String fieldName,
  2. DateTime? value
)

Updates a DateFieldState with a given value.

  • fieldName The name of the date field to update.
  • value The new value for the date field.

Implementation

void updateDate(String fieldName, DateTime? value) {
  update<DateFieldState, DateTime?>(fieldName, value);
}