28,661 questions
Hello there,
This error occurs when you use a bang operator (!) on a nullable instance which wasn't initialized.
For example:
String? string; // Nullable String
void main() {
var len = string!.length; // Runtime error: Null check operator used on a null value
}
Solutions:
Open the logs and there must be a line pointing to a file in your project where the error occurred.
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer--