Whether error is Firestore saying a query needs an index it lacks.
error
bool isMissingIndexError(Object? error) => error is FirebaseException && error.code == 'failed-precondition';