copyWith method

DashboardGadget copyWith({
  1. DashboardGadgetColor? color,
  2. int? id,
  3. String? moduleKey,
  4. DashboardGadgetPosition? position,
  5. String? title,
  6. 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,
  );
}