readOnly<T> method
Create a read-only wrapper for a SwiftValue This is a convenience method that also registers it for disposal
Implementation
@protected
ReadOnlyRx<T> readOnly<T>(SwiftValue<T> swift) {
final readOnly = ReadOnlyRx(swift);
registerReadOnlyRx(readOnly);
return readOnly;
}