SwiftValue<T> constructor
SwiftValue<T> (
- T _value, {
- 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);
}
}