fix deprecation

This commit is contained in:
Kima 2024-03-17 21:26:11 +01:00
parent 9d49ec3972
commit 9d49ee0eae

View File

@ -9,7 +9,7 @@ Future<String> dirtyString() async {
// Extract words and their types // Extract words and their types
final words = document.findAllElements('Word').map((element) { final words = document.findAllElements('Word').map((element) {
return { return {
'word': element.text.trim(), 'word': element.innerText.trim(),
'type': element.getAttribute('type')!, 'type': element.getAttribute('type')!,
}; };
}).toList(); }).toList();