Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase: flutter want to get a null value

I want to get data that is null in a Firebase database

stream: Firestore.instance
      .collection('resep')
      .where("email", isEqualTo: null)
      .snapshots(),

I want to get email data that is null

like image 671
Rifky Ramandika186 Avatar asked Nov 16 '25 11:11

Rifky Ramandika186


1 Answers

From the documentation:

where(dynamic field, { dynamic isEqualTo, dynamic isLessThan, dynamic isLessThanOrEqualTo, dynamic isGreaterThan, dynamic isGreaterThanOrEqualTo, dynamic arrayContains, bool isNull }) → Query Creates and returns a new Query with additional filter on specified field. field refers to a field in a document. [...]

There is a isNull property

like image 200
Cristian Bregant Avatar answered Nov 19 '25 00:11

Cristian Bregant



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!