2024-12-22 18:07:41 +00:00
|
|
|
class TrendHistoryData {
|
|
|
|
static final empty =
|
|
|
|
TrendHistoryData(day: DateTime(1970), uses: 0, accounts: 0);
|
|
|
|
final DateTime day;
|
|
|
|
final int uses;
|
|
|
|
final int accounts;
|
|
|
|
|
|
|
|
const TrendHistoryData({
|
|
|
|
required this.day,
|
|
|
|
required this.uses,
|
|
|
|
required this.accounts,
|
|
|
|
});
|
|
|
|
|
|
|
|
@override
|
|
|
|
bool operator ==(Object other) =>
|
|
|
|
identical(this, other) ||
|
|
|
|
other is TrendHistoryData &&
|
|
|
|
runtimeType == other.runtimeType &&
|
2024-12-23 20:34:43 +00:00
|
|
|
day == other.day &&
|
|
|
|
uses == other.uses &&
|
2024-12-22 18:07:41 +00:00
|
|
|
accounts == other.accounts;
|
|
|
|
|
|
|
|
@override
|
2024-12-23 20:34:43 +00:00
|
|
|
int get hashCode => day.hashCode ^ uses.hashCode ^ accounts.hashCode;
|
2024-12-22 18:07:41 +00:00
|
|
|
}
|