FlutterDurationExtensions extension
- on
Methods
-
formatWith(
BuildContext context, {int maxParts = 2, int secondsToShowNow = 0}) → String -
Available on Duration, provided by the FlutterDurationExtensions extension
Localize duration using TranslatedDurationFormatter formatter You have to addTranslatedDurationFormatter.delegate
in yourlocalizationsDelegates
-
toTimeOfDay(
) → TimeOfDay -
Available on Duration, provided by the FlutterDurationExtensions extension
convert the duration to TimeOfDay if duration is greater than 24 hours it will throw an exception