Skip to content

Instantly share code, notes, and snippets.

@toshiossada
Created May 15, 2023 18:36
void main(){
final user = {
'name': 'Toshi Ossada',
'age': 25,
};
final userRetorno = userInfo(user);
print('Nome do Usuario: ${userRetorno.name}, idade: ${userRetorno.age} anos.');
}
({String name, int age}) userInfo(Map<String, dynamic> json) {
return (name: json['name'], age: json['age'] );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment