SpotKey<T> constructor

const SpotKey<T>(
  1. Type type, [
  2. String? name
])

Creates a registry key for service lookup.

  • type: The type being registered (typically T)
  • name: Optional name for named instances (null for default instance)

Implementation

const SpotKey(this.type, [this.name]);