Formatter class

Create a object that holds the String options that can be used format a DateTime

Annotations

Constructors

Formatter({required String yesterday, required String justNow, required String minute, required String minutes, required String hour, required String hours, required String day, required String days})
Create a object that holds the String options that can be used format a DateTime
const

Properties

day String
Eg: 1 day ago
final
days String
Eg: 3 days ago
final
hashCode int
The hash code for this object.
no setteroverride
hour String
Eg: 1 hour ago
final
hours String
Eg: 2 hours ago
final
justNow String
Eg: just now
final
minute String
Eg: 1 minute ago
final
minutes String
Eg: 3 minutes ago
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
yesterday String
Eg: yesterday
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.
override

Constants

large → const Formatter
Use large format type. Eg: minutes, hours
small → const Formatter
Use small format type. Eg: mins, hrs