CubitStateEntity copyWith({ ID? id, String? name, Map<ID, Variable>? fields, }) { return CubitStateEntity( id: id ?? this.id, name: name ?? this.name, fields: fields ?? this.fields, ); }