TranslationLoader.memory constructor

TranslationLoader.memory(
  1. Map<String, String> values
)

Creates a TranslationLoader instance with the given values to utilize.

This is effectively non-blocking because it does not need to wait for any external data.

This is a convenience factory constructor and is ultimately a synonym for constructing an MemoryTranslationLoader directly.

Implementation

factory TranslationLoader.memory(Map<String, String> values) =>
    MemoryTranslationLoader(values);