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