localSendChannel property
Fast path: resolve local channel if in same isolate. Returns null if this IS the local channel or if remote.
Implementation
@pragma('vm:prefer-inline')
@override
ChannelCore<T, Object>? get localSendChannel {
if (_cachedLocal != null) return _cachedLocal;
final local = ChannelRegistry.get(channelId);
if (local != null && !identical(local, this)) {
return _cachedLocal = local as ChannelCore<T, Object>;
}
return null;
}