Aniketkhote / refreshed

Enhanced GetX for Flutter: Stability, Performance, Beginner-Friendly.
https://pub.dev/packages/refreshed
Other
67 stars 7 forks source link

Problem using `ObxValue`. Couldn't infer type parameter. #33

Closed uzuki-P closed 3 months ago

uzuki-P commented 4 months ago

Describe the bug When using ObxValue, I can't even use the example and got Couldn't infer type parameter. error. After cross refrence it to the original master branch, it should be using class ObxValue<T extends RxInterface> instead of class ObxValue<T extends RxInterface<T>>

Code Example:

ObxValue((data) => Switch(
   value: data.value,
   onChanged: (flag) => data.value = flag,
 ),
 false.obs,
),

Refreshed Version: refreshed: ^2.8.0

uzuki-P commented 3 months ago

merge on https://github.com/Aniketkhote/refreshed/pull/34