ver se a parte de eliminar fica com botao ou arrastar perguntar ao setor meter emolador de tabelet ou phone
This commit is contained in:
@@ -3,12 +3,14 @@ class Team {
|
||||
final String name;
|
||||
final String season;
|
||||
final String imageUrl;
|
||||
final bool isFavorite;
|
||||
|
||||
Team({
|
||||
required this.id,
|
||||
required this.name,
|
||||
required this.season,
|
||||
required this.imageUrl,
|
||||
this.isFavorite = false
|
||||
});
|
||||
|
||||
// Converte de Mapa (o formato da nossa "memória") para Objeto
|
||||
@@ -18,6 +20,7 @@ class Team {
|
||||
name: map['name'] ?? '',
|
||||
season: map['season'] ?? '',
|
||||
imageUrl: map['image_url'] ?? '',
|
||||
isFavorite: map['is_favorite'] ?? false,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -28,6 +31,7 @@ class Team {
|
||||
'name': name,
|
||||
'season': season,
|
||||
'image_url': imageUrl,
|
||||
'is_favorite': isFavorite,
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user