updateEntry<T extends ContextEntry> method

Context updateEntry<T extends ContextEntry>(
  1. ContextUpdater<T?> update
)

Create a Context by updating entry of type T

Implementation

Context updateEntry<T extends ContextEntry>(
  ContextUpdater<T?> update,
) =>
    withEntry<T>(
      update(
        entry<T>(),
      ),
    );