I don’t think that is allowed. The widget requires the source to be persistable.
Alternatively, you could re-think the design of the application to see how you can store it as persistable and then use it in the widget. But I don’t see any other alternative if you want to use the widget.
Hope this helps!