req_fun
library
Functions
-
checkInternet({dynamic lookupAddress = "google.com"})
→ Future<bool>
-
Instant check internet connection by providing the lookup address default is google.com
-
delay(Duration duration, Function function)
→ dynamic
-
delay function for any action
-
delayInMilliseconds(int milliseconds, Function function)
→ dynamic
-
delay in milliseconds function for any action
-
delayInSeconds(int seconds, Function function)
→ dynamic
-
delay in seconds function for any action
-
tryCatch(BuildContext context, {required void action(), void socketException(SocketException, StackTrace)?, void formatException(FormatException, StackTrace)?, void platformException(PlatformException, StackTrace)?, void exception(Exception, StackTrace)?, void error(Error, StackTrace)?, void otherCatch(dynamic, StackTrace)?})
→ dynamic
-
try catch function