improved tab & topic handling

This commit is contained in:
Fabian Freund
2024-08-28 16:00:39 +02:00
parent 95dd254484
commit 0a7e84236f
43 changed files with 2035 additions and 847 deletions
@@ -0,0 +1,41 @@
import 'dart:ui';
import 'package:fast_equatable/fast_equatable.dart';
class TopicData with FastEquatable {
final String id;
final String? name;
final Color color;
TopicData({required this.id, this.name, required this.color});
@override
bool get cacheHash => true;
@override
List<Object?> get hashParameters => [
id,
name,
color,
];
}
class TopicDataWithCount extends TopicData {
final int? tabCount;
TopicDataWithCount({
required super.id,
super.name,
required super.color,
required this.tabCount,
});
@override
bool get cacheHash => true;
@override
List<Object?> get hashParameters => [
...super.hashParameters,
tabCount,
];
}