RealtimeTextFormats constructor

const RealtimeTextFormats({
  1. String after = "after",
  2. String ago = "ago",
  3. String now = "now",
  4. String today = "Today",
  5. String tomorrow = "Tomorrow",
  6. String yesterday = "Yesterday",
  7. TextFormat second = const TextFormat(singular: "second", plural: "seconds"),
  8. TextFormat minute = const TextFormat(singular: "minute", plural: "minutes"),
  9. TextFormat hour = const TextFormat(singular: "hour", plural: "hours"),
  10. TextFormat day = const TextFormat(singular: "day", plural: "days"),
  11. TextFormat week = const TextFormat(singular: "week", plural: "weeks"),
  12. TextFormat month = const TextFormat(singular: "month", plural: "months"),
  13. TextFormat year = const TextFormat(singular: "year", plural: "years"),
})

Implementation

const RealtimeTextFormats({
  this.after = "after",
  this.ago = "ago",
  this.now = "now",
  this.today = "Today",
  this.tomorrow = "Tomorrow",
  this.yesterday = "Yesterday",
  this.second = const TextFormat(
    singular: "second",
    plural: "seconds",
  ),
  this.minute = const TextFormat(
    singular: "minute",
    plural: "minutes",
  ),
  this.hour = const TextFormat(
    singular: "hour",
    plural: "hours",
  ),
  this.day = const TextFormat(
    singular: "day",
    plural: "days",
  ),
  this.week = const TextFormat(
    singular: "week",
    plural: "weeks",
  ),
  this.month = const TextFormat(
    singular: "month",
    plural: "months",
  ),
  this.year = const TextFormat(
    singular: "year",
    plural: "years",
  ),
});