delete == of spots bug
continuous-integration/drone/push Build is passing Details

#MSG01/chat_firebase
Lucas DELANIER 2 years ago
parent be8bcc7955
commit 4a48a79900

@ -5,13 +5,4 @@ class Spot {
Music music;
Spot(this.userId, this.music);
@override
bool operator ==(Object other) =>
other is Spot &&
runtimeType == other.runtimeType &&
music.name == other.music.name;
@override
int get hashCode => music.hashCode;
}

@ -57,11 +57,7 @@ class User {
for (var element in tab) {
List<String> tab2 = element.split("-");
if (!spots.contains(Spot(tab2[0], Music(tab2[1])))) {
spots.add(Spot(tab2[0], Music(tab2[1])));
return;
}
print('deja présent');
}
});
}

Loading…
Cancel
Save