RelativeTimeConfig class
Configuration for relative time formatting.
Constructors
- RelativeTimeConfig({RelativeTimeThresholds thresholds = const RelativeTimeThresholds(), bool withoutSuffix = false, bool addSuffix = true})
-
const
Properties
- addSuffix → bool
-
Whether to add a suffix.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- thresholds → RelativeTimeThresholds
-
The thresholds for switching between units.
final
- withoutSuffix → bool
-
Whether to omit the suffix ("ago" / "in").
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
Constants
- defaultConfig → const RelativeTimeConfig
- Default configuration.