copyWith method
DashboardGadget
copyWith({
- DashboardGadgetColor? color,
- int? id,
- String? moduleKey,
- DashboardGadgetPosition? position,
- String? title,
- String? uri,
Implementation
DashboardGadget copyWith(
{DashboardGadgetColor? color,
int? id,
String? moduleKey,
DashboardGadgetPosition? position,
String? title,
String? uri}) {
return DashboardGadget(
color: color ?? this.color,
id: id ?? this.id,
moduleKey: moduleKey ?? this.moduleKey,
position: position ?? this.position,
title: title ?? this.title,
uri: uri ?? this.uri,
);
}