clone method

Contexts clone()

Implementation

Contexts clone() {
  final copy = Contexts(
    device: device?.clone(),
    operatingSystem: operatingSystem?.clone(),
    app: app?.clone(),
    browser: browser?.clone(),
    culture: culture?.clone(),
    gpu: gpu?.clone(),
    trace: trace?.clone(),
    response: response?.clone(),
    runtimes: runtimes.map((runtime) => runtime.clone()).toList(),
    feedback: feedback?.clone(),
  )..addEntries(
      entries.where((element) => !_defaultFields.contains(element.key)),
    );

  return copy;
}