HumanizeOptions class

Constructors

HumanizeOptions({List<Units> units = Units.values, String spacer = ' ', String delimiter = ', ', String? conjunction, bool lastPrefixComma = false})
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.
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.
final
units List<Units>
List of units to use. It can be one, or a combination of any, of the following Units.year, Units.month, Units.week, Units.day, Units.hour, Units.minute, Units.second, Units.millisecond.
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