global_helpers library
A collection of useful functions, extensions and constants.
Classes
- AppLocalizations
-
Callers can lookup localized strings with an instance of AppLocalizations
returned by
AppLocalizations.of(context).
Extensions
- AppLocalizationsExt
- DateTimeExtensions Universal_helpers
- Get millisecondsSinceEpoch and round down to days.
- LocaleWithDelegate
Constants
Properties
- nullDate → DateTime
-
final
- sqlFormat → DateFormat
-
final
- standardFormat → DateFormat
-
final
Functions
-
getSafePath(
List< String> subFolders) → Future<String?> - Return string - new path with only safe characters in DocumentsDirectory.
-
lookupAppLocalizations(
Locale locale) → AppLocalizations -
mapJsonDecode(
List< String> list) → List<Map< String, dynamic> > - Helper, convert String to List of Map<String, dynamic>
-
mostRecentMonday(
{DateTime? date, int addDays = 0}) → DateTime -
mostRecentMonth(
{DateTime? date, int addMonths = 0}) → DateTime -
safeName(
String s, {int length = 150}) → String -
showErrorNotification(
String text) → void - Display error Notification to user.
-
showNotification(
String text, {Duration? duration}) → void - Display Notification.