utils/exporter
library
Functions
-
a()
→ void
-
-
copyToClipboard(String value)
→ Future<void>
-
-
debug(dynamic message, [dynamic error, StackTrace? stackTrace])
→ void
-
-
defaultPage<T>(Widget child, {String? routeName})
→ Route<T>
-
-
getMediaType(String? mediaSrc)
→ MediaType
-
-
getNameFromEmail(String? email)
→ String?
-
/////////////////////
-
getRandomElement<T>(List<T> list)
→ T
-
-
getRandomRange(int start, int end)
→ int
-
random int from
start,end
-
offsetFromDirection(AxisDirection axisDirection)
→ Offset
-
//////////////////////////
////Transition////////////
-
parseList<T extends Object?>({required List? json, required T fromJson(Map<String, dynamic> json)})
→ List<T?>?
-
////PARSER////////////
-
parseListNotNull<T extends Object?>({required List json, required T fromJson(Map<String, dynamic> json)})
→ List<T>
-
-
parseMap<T extends Object?>({required Map<String, dynamic> json, required T fromJson(Map<String, dynamic> json)})
→ Map<String, T?>
-
-
parseMapNotNull<T extends Object?>({required Map<String, dynamic> json, required T fromJson(Map<String, dynamic> json)})
→ Map<String, T>
-
-
pop<T extends Object?>(BuildContext context, [T? result])
→ void
-
-
popToRoot(BuildContext context)
→ void
-
-
push<T>(BuildContext context, Widget page, {String? routeName})
→ Future<T?>
-
-
pushReplacement<T extends Object?, T0 extends Object?>(BuildContext context, Widget page, {T0? result})
→ Future<T?>
-
-
showAlertDialog<T>(BuildContext context, {String? title, String? content, VoidCallback? onClose, VoidCallback? onOk, String titleClose = 'Close', String titleOk = 'Ok', bool barrierDismissible = true, bool useRootNavigator = false})
→ Future<T?>
-
actions: a builder with dismiss callback to dismiss the dialog
-
showSnackBar(BuildContext context, String message, {Color? backgroundColor, int milliseconds = 4000, SnackBarAction? action, Function? onClosed})
→ void
-
-
slidePage(Widget child, {AxisDirection axisDirection = AxisDirection.right})
→ Route
-
-
toast(String value, {Color? backgroundColor, Color? textColor, double? fontSize = 16})
→ Future<bool?>
-
-
validateEmpty(String? value)
→ String?
-