relatica/lib/models/timeline_grouping_list_data.dart
2024-08-28 11:56:19 -04:00

35 lines
787 B
Dart

enum GroupingType {
channel,
circle,
group,
}
class TimelineGroupingListData {
static const followersPseudoCircle =
TimelineGroupingListData('~', 'Followers', GroupingType.circle);
static const empty = TimelineGroupingListData('', '', GroupingType.circle);
final String id;
final String name;
final GroupingType groupingType;
const TimelineGroupingListData(this.id, this.name, this.groupingType);
@override
String toString() {
return 'CircleData{id: $id, name: $name, type: ${groupingType.name}}';
}
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is TimelineGroupingListData &&
runtimeType == other.runtimeType &&
id == other.id;
@override
int get hashCode => id.hashCode;
}