copyWith method

UnitOfMeasures copyWith({
  1. List<UnitOfMeasuresDetails>? results,
})

Creates a copy of the current instance with optional new values.

Implementation

UnitOfMeasures copyWith({
  List<UnitOfMeasuresDetails>? results,
}) {
  return UnitOfMeasures(
    results: results ?? this.results,
  );
}