forked from Henry-Hiles/nexus
fix some stuff (maybe?)
This commit is contained in:
parent
a4d60e6c83
commit
3e82faeb86
10 changed files with 58 additions and 36 deletions
|
|
@ -4,9 +4,20 @@ part "full_room.freezed.dart";
|
|||
|
||||
@freezed
|
||||
abstract class FullRoom with _$FullRoom {
|
||||
const FullRoom._();
|
||||
const factory FullRoom({
|
||||
required Room roomData,
|
||||
required String title,
|
||||
required Uri? avatar,
|
||||
}) = _FullRoom;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
other.runtimeType == runtimeType &&
|
||||
other is FullRoom &&
|
||||
other.avatar == avatar &&
|
||||
other.title == title;
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType, title, avatar);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue