dreamic
library
Functions
appInitRemoteConfig ({Map <String , dynamic > ? additionalDefaultConfigs })
→ Future <void >
callWithLoadingAfterTimeout <T > (Future <T > fn (), {void onError (dynamic error )?, int ? timeoutBeforeLoadingMill , LoadingStartCallback ? onLoadingStart , LoadingFinishCallback ? onLoadingFinish })
→ Future <T >
Calls the given function and shows a loading overlay after a timeout.
The loading overlay is shown only if the function call takes longer than the given timeout.
The T type is the return type of the function.
callWithLoadingAndRetry <T > (Future <T > fn (), {void onError (dynamic error )?, int ? timeoutBeforeLoadingMill , int ? maxAttempts })
→ Future <T >
configureTimeoutLoadingCallbacks ({LoadingStartCallback ? onLoadingStart , LoadingFinishCallback ? onLoadingFinish })
→ void
debugRemoteConfigWeb ()
→ Future <void >
Debug Remote Config specifically for web platform issues
forceRefreshRemoteConfig ()
→ Future <void >
Force refresh Remote Config values (useful for debugging)
This bypasses the minimumFetchInterval by using fetchAndActivate with force
forceRefreshRemoteConfigWeb ()
→ Future <void >
Force refresh Remote Config for web with detailed logging
getActiveLoadingCallsCount ()
→ int
Get current active loading calls count - useful for debugging
navigateToUrl (String url , {bool inNewTab = false })
→ void
openFile (Uint8List bytes , FileOpenerFileType fileType , {String baseFileName = 'temp' , bool preferDownload = true })
→ dynamic
reloadApp ()
→ void
resetLoadingState ()
→ void
Reset the loading state - useful for error recovery
testFirebaseConsoleSetup ()
→ Future <void >
Test if Remote Config parameters are set up in Firebase Console
testRemoteConfigValues ()
→ Future <void >
Test Remote Config functionality and log the results
This is useful for debugging Remote Config issues
webForceInitialFetch ()
→ Future <void >
Force a fetch on web platforms for initial startup
Web platforms need this explicit fetch since real-time listeners don't work