return value from function and bind value to text flutter code example Example: flutter textfield controller dependencies: flutter_spinkit: "^4.1.2"