database – How to filter Hive data in flutter by data values?


In Flutter, I using ValueListenableBuilder widget to get list of hive data.
and I and trying to filter my data by data values,

exmaple:-
Key:1
name(value) : mydata1
des(value) : mydescription1
value(value) : 1

here in this example I want to filter data by data value called “value(value)” by help of dropdown

like,

if (value.compareTo(1) == 1){
 print('All First Value Data Showing Result');
}

Something like that, help me.

https://i.stack.imgur.com/PuFfn.png (ValueListenableBuilder mycode Image)

Thank you.