clone method

TCsvRow clone({
  1. bool newId = true,
})

Creates a clone of this row with an optional new ID.

Implementation

TCsvRow clone({bool newId = true}) {
  return TCsvRow(
    id: newId ? null : id,
    values: Map<String, dynamic>.from(values),
    errors: Map<String, String>.from(errors),
  );
}