Save user API Key and Fetch it for API Calls

Database & APIs

Hi everyone, I'm building an application where the user will need to input an API Key of his investment account (Each user has one) and this API Key will need to be used when there is an API call. What is the best way to save and it fetch it?

There a screen in setting where the user can enter the API Key and a button where I would like to trigger the save functionality when it is tapped.

Thanks for your time

Sam

What have you tried so far?

I have searched about it, tried to implement it to save in firebase once the user taps the button but it doest work as you can see the image below. I'm just starting with FlutterFlow so I understand it might be a simple question but would love to get some support on this, if you know anyone who has done this or any video (I haven't found any) please let me know. API

Did you check FlutterFlow's Documentation for this topic?
Yes