I have a stream builder whose query requires a value from shared preferences, so in the init state i created an async function to get a value from the shared preferences and