AutoDateTimeTickFormatterSpec constructor

const AutoDateTimeTickFormatterSpec({
  1. TimeFormatterSpec? minute,
  2. TimeFormatterSpec? hour,
  3. TimeFormatterSpec? day,
  4. TimeFormatterSpec? month,
  5. TimeFormatterSpec? year,
})

Creates a TickFormatterSpec that automatically chooses the formatting given the individual TimeFormatterSpec formatters that are set.

There is a default formatter for each level that is configurable, but by specifying a level here it replaces the default for that particular granularity. This is useful for swapping out one or all of the formatters.

Implementation

const AutoDateTimeTickFormatterSpec(
    {this.minute, this.hour, this.day, this.month, this.year});