copyWith method

ZIOContext<R> copyWith({
  1. Runtime? runtime,
  2. R? env,
  3. DeferredIO<Never>? signal,
  4. LayerContext? layers,
  5. IMap<Symbol, IMap<String, dynamic>>? annotations,
})

Implementation

ZIOContext<R> copyWith({
  Runtime? runtime,
  R? env,
  DeferredIO<Never>? signal,
  LayerContext? layers,
  IMap<Symbol, IMap<String, dynamic>>? annotations,
}) =>
    ZIOContext._(
      runtime: runtime ?? this.runtime,
      env: env ?? this.env,
      signal: signal ?? this.signal,
      layers: layers ?? this.layers,
      annotations: annotations ?? this._annotations,
    );