How to store a custom type at app state.

Hi there

My application requires the use of a third-party package. The package defines a custom type, which is an instance of a class. After initialization, I need to store this type in the app state for interaction with every widget. However, Flutter's custom types only support one-to-one map for database models. Is there a way to store custom data types on the app state?

Thanks

2
1 reply