setDate method

void setDate(
  1. dynamic date, [
  2. bool triggerChange = false,
  3. String? dateStrFormat
])

Sets the current selected date(s) todate, which can be a date string, a DateTime, or an array of dates.

Optionally, pass true as the second argument to force any onChange events to fire. And if you’re passing a date string with a format other than your dateFormat, provide a dateStrFormat e.g. "m/d/Y".

Implementation

external void setDate(
  dynamic date, [
  bool triggerChange = false,
  String? dateStrFormat,
]);