LocalizationExtensions extension
- on
Properties
-
no setter
Methods
-
tryLocalizeDate(
DateTime? date, String pattern) → String? - Parses the given date and returns the localized version of the date based on the given pattern.
-
tryLocalizeTimestamp(
num? secondsSinceEpoch, String pattern) → String? - Parses the given number as a date representing the seconds since epoch, and returns the localized version of the date based on the given pattern.