GlobalUtils class

Constructors

GlobalUtils.new({GlobalKey<NavigatorState>? navigatorKey})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Operators

operator ==(Object other) bool
The equality operator.
inherited