StreamVariable in SharedState

I try to implement multiupload component, and I use LegacyComponent for this purpose.
Can i use StreamVariable in component shared state?