FlutterDateDifference class

FlutterDateDifference IS a Main Class

Constructors

FlutterDateDifference({String? language})
FlutterDateDifference constructor

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

calculate(DateTime date1, DateTime date2) String
String method calculate takes date1 and date2 and return String value Date Difference
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setLanguage({required String language}) → void
Set language
setTexts({String? now, String? year, String? yearPlural, String? month, String? monthPlural, String? day, String? dayPlural, String? hour, String? hourPlural, String? minute, String? minutePlural}) → void
Set texts
toString() String
A string representation of this object.
inherited

Operators

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