createKey static method

  1. @Deprecated('This method will be removed in 0.19.0. Use [ContextKey] instead.')
ContextKey createKey(
  1. String name
)

Returns a key to be used to read and/or write values to a context.

name is for debug purposes only and does not uniquely identify the key. Multiple calls to this function with the same name will not return identical keys.

Implementation

@Deprecated(
    'This method will be removed in 0.19.0. Use [ContextKey] instead.')
static ContextKey createKey(String name) => ContextKey();