copyWith method

DeviceMetadata copyWith({
  1. String? model,
  2. String? osVersion,
})

Creates a copy of this metadata with the given fields replaced.

Implementation

DeviceMetadata copyWith({
  String? model,
  String? osVersion,
}) {
  return DeviceMetadata(
    model: model ?? this.model,
    osVersion: osVersion ?? this.osVersion,
  );
}