I am trying to make a web scrawler.when I add this line of code
document.querySelectorAll("div.search-button input[type=button]")[0] as InputElement
I am getting this error
Error: 'InputElement' isn't a type.
I have added html and http packages
import 'package:html/parser.dart';
import 'package:http/http.dart' as http;
How can i fix this error
CodePudding user response:
https://api.dart.dev/stable/2.16.1/dart-html/InputElement-class.html
"dart:html library"
so
import 'dart:html';