key method

String key(
  1. String path
)

Build the prefixed key for a user-supplied path. No-op when keyPrefix is null.

Implementation

String key(String path) => keyPrefix != null ? '$keyPrefix/$path' : path;