Accessing the widget's value from custom code (custom function or action)

Custom Code

Hi there,

I am new to FlutterFlow. I have a question about the Custom Function/Action. Is there a way I can access the value of some widget within the Custom Action/Function without using the parameter to pass the value?

For example, assume I want to access the text of a Text Widget from the custom action and I don't want to use the parameter way to pass in the text value. Is this achievable?

I was wondering whether FlutterFlow's custom coding mechanism has a way like the way "Document: getElementById()" in JavaScript that we can fetch any widget in the widget tree?

Or using the parameter to pass in the value to the custom code is the only way.

Thanks in advance for your guidance.

What have you tried so far?

Seach the document and search the forum

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