GlobalUtils class
Methods
-
errorSnackbar(Object msg)
→ void
-
-
fastSnackBar({required String msg, SnackBarType? snackBarType, GlobalKey<NavigatorState>? navKey})
→ void
-
-
formatDuration(Duration d)
→ String
-
-
fromDuration(Duration duration)
→ String
-
-
infoSnackbar(String msg)
→ void
-
-
measureTime<T>(String tag, FutureOr<T> callback())
→ Future<T>
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
putS(int n, [bool capital = false])
→ String
-
-
showSnackBar({required BuildContext context, required String message, Color? backgroundColor, Color? textColor, SnackBarType? snackBarType, bool aboveBottomNavBar = false, EdgeInsets? margin, VoidCallback? onActionTapped, String? actionString})
→ void
-
-
stringToEnum<T>(String value, List<T> enumValues)
→ T?
-
-
successSnackbar(String msg)
→ void
-
-
toString()
→ String
-
A string representation of this object.
inherited