ThemedHumanizeOptions class

Constructors

ThemedHumanizeOptions({List<ThemedUnits> units = const [ThemedUnits.year, ThemedUnits.month, ThemedUnits.day, ThemedUnits.hour, ThemedUnits.minute], String spacer = ' ', String delimiter = ', ', String conjunction = ' and ', bool lastPrefixComma = false})
ThemedHumanizeOptions is the configuration for Duration.humanize function.
const

Properties

conjunction String
String to include before the final unit. You can also set lastPrefixComma to false to eliminate the final comma.
final
delimiter String
String to display between the previous unit and the next value. By default, it uses a comma and a whitespace.
final
hashCode int
The hash code for this object.
no setterinherited
lastPrefixComma bool
The comma set before the last value.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spacer String
String to display between each value and unit. By default, it uses a whitespace.
final
units List<ThemedUnits>
List of units to use. It can be one, or a combination of any possible unit. By default, it uses:
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited