DashboardStat class
Model representing a dashboard statistic item.
Each DashboardStat contains an icon, a title, and a count value to display on the dashboard.
Constructors
- DashboardStat.new({required IconData icon, required String title, required String count})
-
Creates a DashboardStat with the given
icon
,title
, andcount
.
Properties
- count → String
-
The count or value of the statistic.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → IconData
-
The icon representing the statistic.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String
-
The title or label of the statistic.
final
Methods
-
copyWith(
{IconData? icon, String? title, String? count}) → DashboardStat - Returns a copy of this DashboardStat with optional new values for its fields.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited