alippo-com / GrowthBook-SDK-Flutter

An open-source feature flagging and experimentation platform that makes it simple to alter features and execute A/B testing.
MIT License
12 stars 8 forks source link

Usage of Equatable package in GBFeature class #46

Open OnlyTarg opened 1 year ago

OnlyTarg commented 1 year ago

Hey! I would like to propose an enhancement for the growbook package that would make it even more convenient to use.

I suggest adding the usage of the equatable package to the GBFeature class to enable object comparison during the refresh of all features. This will allow users to easily determine if any changes occurred in the GBFeature without the need for additional checks at the user interface level.

Equatable is a library that simplifies object comparison based on their fields and automatically generates equals and hashCode methods. By adding Equatable to GBFeature, users can efficiently identify data changes during the refresh and take appropriate actions without unnecessary checks.

I believe that this enhancement will make growbooksdk even more appealing to developers and help save time by reducing the need for writing additional code to check for changes.

Thank you for considering my suggestion! I am available to provide any further information or answer any questions if needed.

DK070202 commented 1 year ago

Before we move forward, we'd like to gain a better understanding of how you are using refresh functionality. Could you provide an example or scenario where the refresh functionality is employed within the context of the GBFeature class? This would help us visualize how the Equatable enhancement would fit into the existing workflow and provide a clearer picture of its benefits.