SwiftValue<T> constructor

SwiftValue<T>(
  1. T _value, {
  2. String? name,
})

Constructor - type is automatically inferred from the value

Implementation

SwiftValue(this._value, {String? name}) : _devToolsName = name {
  // Zero overhead: only track if DevTools is enabled
  if (SwiftDevTools.isEnabled) {
    SwiftDevTools.trackSwiftCreation(this, _devToolsName);
  }
}