titleTextFormatter property

TextFormatter? titleTextFormatter
final

Use to customize header's title text (e.g. with different DateFormat). You can use String transformations to further customize the text. Defaults to simple 'yMMMM' format (i.e. January 2019, February 2019, March 2019, etc.).

Example usage:

titleTextFormatter: (date, locale) => DateFormat.yM(locale).format(date),

Implementation

final TextFormatter? titleTextFormatter;