utils/utils
library
Functions
-
backdropDialog(Widget child)
→ Future
-
-
capture()
→ Future<Uint8List>
-
-
delayed(FutureOr call(), [int t = 0])
→ Future<void>
-
-
doubleDelayed(FutureOr callOne(), FutureOr callTwo(), [int t1 = 0, int t2 = 0])
→ Future<void>
-
-
downloadWeb(Uint8List file, String fileName)
→ void
-
-
errorToast(String content, [bool isBottom = true])
→ Future
-
-
gqlQuery<T>(Future<QueryResult<T>> query)
→ Future<Map<String, dynamic>>
-
-
hardwareIp()
→ Future<(String, String)>
-
-
mutateGqlRepo<T>(Future<QueryResult<T>> mutate())
→ TaskGqlVoid
-
-
okToast(String content, [bool isBottom = true])
→ Future
-
-
quadDelayed(FutureOr callOne(), FutureOr callTwo(), FutureOr callThree(), FutureOr callFour(), [int t1 = 0, int t2 = 0, int t3 = 0, int t4 = 0])
→ Future<void>
-
-
queryGqlRepo<T, K>(Future<QueryResult<K>> query(), T change(Map<String, dynamic>))
→ TaskEither<GqlException, T>
-
-
reload()
→ void
-
-
saveFile(Uint8List file, String path, String fileName, String mimeType)
→ Future<void>
-
-
taskEmpty<T, K extends TaskEither<GqlException, T>>(K task(), T empty())
→ Future<T>
-
-
taskThrowable<T, K extends TaskEither<GqlException, T>>(K task())
→ Future<T>
-
-
taskToast<T extends TaskGqlVoid>(T task(), String toastMsg, String toastErr)
→ void
-
-
taskTrueFalse<K, T extends TaskEither<GqlException, K>>(T task())
→ Future<bool>
-
-
thirdDelayed(FutureOr callOne(), FutureOr callTwo(), FutureOr callThree(), [int t1 = 0, int t2 = 0, int t3 = 0])
→ Future<void>
-
-
toast({required String title, required String content, Duration? duration, bool isBottom = true, IconData icon = Icons.tips_and_updates_outlined, Color indicateColor = Colors.red})
→ Future
-
-
transitionPage(Widget child)
→ CustomTransitionPage
-