for (var i in querySnapshot.docs) {
if (i.data()['admin'].toString().trim() ==
value.toString().trim()) {
print("AdminDetected");
searchCompleted = true;
Navigator.pushNamed(context, Admin.routeName);
break;
} else if (i
.data()['courtWorkerEmail']
.toString()
.trim() ==
value.toString().trim()) {
print("CourtWorkerDetected");
searchCompleted = true;
Navigator.pushNamed(context, CourtWorker.routeName);
break;
}
lib/screens/sign_in/components/sign_form.dart:112:35:错误:未为类“Object”定义运算符“[]”。