There’s many options to do that, for example a data class, like that,
class Data {
String firstname;
String lastname;
String email;
String address;
Data({this.firstname, this.lastname, this.email, this.address});
}
Now you declare and initialize the instance of the class,
final data = Data(firstname: 'Denzel', lastname: 'Washington', email: '[email protected]', address: 'unknow')
After that you can pass and retrieve to the pages.
solved I am new in flutter i want pass data like user details name,address,moible number,email to another screen can you tell me how to do this [duplicate]