Error Null check operator used on a null value Flutter

I get this error in the StreamBuilder: Here’s the code: import ‘dart:async’; import ‘package:firebase_database/firebase_database.dart’; import ‘package:flutter/material.dart’; class NewCauseMenu extends StatefulWidget { String? area; NewCauseMenu(this.area, {super.key}); @override State<NewCauseMenu> createState() => _NewCauseMenuState(); } class _NewCauseMenuState extends State<NewCauseMenu> { final db = FirebaseDatabase.instance; String? dropdownValue; String? problem; String? causa1; String? causa2; String? causa3; String? causa4; var setDefaultProblem =… Read More Error Null check operator used on a null value Flutter

Finding the total amount of times a specific value is found within two different arrays in the backend (firestore database)

I’m trying to find the total amount of times a specific value (uid) is found within two different arrays in the firestore database. Retrieving the total amount of occurrences for a single array works without any issues but when I try to render the sum of two different snapshot.data.length instances, I receive this error: type… Read More Finding the total amount of times a specific value is found within two different arrays in the backend (firestore database)