Undefined name '_model' in DashboardViewModel (Flutter)

Actions & Logic

Description:

I'm encountering an error in my Flutter project related to an undefined variable named _model. This error occurs within the saveFilePopup function of the DashboardViewModel class.

Here's the relevant code snippet:

Dart

class DashboardViewModel extends FlutterFlowModel<DashboardViewWidget> {
  // ... other code

  Future saveFilePopup(BuildContext context) async {
    await showDialog(
      context: context,
      builder: (dialogContext) {
        return Dialog(
          // ...
          child: SaveFilePopupWidget(
            onSave: () async {
              _model.savedAudiourl = null; // Error: _model is undefined
              setState(() {});
            },
          ),
        );
      },
    );
  }
}

Issue when creating common action blocks
No errors in error section
but when trying to build error

What have you tried so far?

If we remove the _model from code it works Iam not able to continue using flutter flow

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