defaults static method

DatePickerThemeData defaults(
  1. BuildContext context
)

A DatePickerThemeData used as the default properties for date pickers.

This is only used for properties not already specified in the ambient DatePickerTheme.of.

See also:

Implementation

static DatePickerThemeData defaults(BuildContext context) {
  return Theme.of(context).useMaterial3
    ? _DatePickerDefaultsM3(context)
    : _DatePickerDefaultsM2(context);
}