copyWith method

DashboardGadgetSettings copyWith({
  1. String? color,
  2. bool? ignoreUriAndModuleKeyValidation,
  3. String? moduleKey,
  4. DashboardGadgetPosition? position,
  5. String? title,
  6. String? uri,
})

Implementation

DashboardGadgetSettings copyWith(
    {String? color,
    bool? ignoreUriAndModuleKeyValidation,
    String? moduleKey,
    DashboardGadgetPosition? position,
    String? title,
    String? uri}) {
  return DashboardGadgetSettings(
    color: color ?? this.color,
    ignoreUriAndModuleKeyValidation: ignoreUriAndModuleKeyValidation ??
        this.ignoreUriAndModuleKeyValidation,
    moduleKey: moduleKey ?? this.moduleKey,
    position: position ?? this.position,
    title: title ?? this.title,
    uri: uri ?? this.uri,
  );
}