copyWith method

BlocxTestEntity copyWith({
  1. String? id,
  2. String? name,
  3. int? order,
  4. Map<String, dynamic>? data,
})

Implementation

BlocxTestEntity copyWith({
  String? id,
  String? name,
  int? order,
  Map<String, dynamic>? data,
}) {
  return BlocxTestEntity(
    id: id ?? this.id,
    name: name ?? this.name,
    order: order ?? this.order,
    data: data ?? this.data,
  );
}