How to call multiple functions in onPressed() in Flutter?

There are one example to do it: RaisedButton( color: Colors.blueAccent, onPressed: () { sendData(); //fun1 signupPage(context); //fun2 }, child: Text("Signup"), ) This is how I add a SnackBar into my code: Padding( padding: const EdgeInsets.all(8.0), child: Center( child: ElevatedButton( onPressed: () { const postSuccessfullySnackBar = SnackBar( content: Text('Your item posted! 0v0'), ); _addNewItemInfoEntry(); ScaffoldMessenger.of(context) .showSnackBar(postSuccessfullySnackBar); …