DefaultDurationFormatter class
formatter to be used with duration formatter you must do the folowing before use it
import 'gen_l10n/simple_localizations.dart';
return MaterialApp(
localizationsDelegates: SimpleLocalizations.localizationsDelegates,
supportedLocales: SimpleLocalizations.supportedLocales,
home: MyApplicationHome(),
);
- Implemented types
Constructors
- DefaultDurationFormatter()
-
const
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
-
getDays(
int days) → String -
override
-
getHours(
int hours) → String -
override
-
getMinutes(
int minutes) → String -
override
-
getMonths(
int months) → String -
override
-
getNow(
) → String -
override
-
getSeconds(
int seconds) → String -
override
-
getSeparator(
) → String -
override
-
getWeeks(
int weeks) → String -
override
-
getYears(
int years) → String -
override
-
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