copyWith method
Returns a copy of this DashboardStat with optional new values for its fields.
If a parameter is not provided, the current value is used.
Implementation
DashboardStat copyWith({IconData? icon, String? title, String? count}) {
return DashboardStat(
icon: icon ?? this.icon,
title: title ?? this.title,
count: count ?? this.count,
);
}