Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter TextSelection.collapsed: The named parameter 'offset' isn't defined

I am getting an error using the Flutter's TextSelection.collapsed:

The named parameter 'offset' isn't defined. Try correcting the name to an existing named parameter's name, or defining a named parameter with the name 'offset'.

enter image description here

However, the Flutter API documentation lists offset as a required int parameter. What's the solution to this?

like image 496
dot64dot Avatar asked Nov 15 '22 04:11

dot64dot


1 Answers

just reload your IDE:on VSCODE for example when you switch to flutter version 1.22.6 a notification appears to restart the IDE

like image 83
DK codeur Avatar answered Dec 05 '22 20:12

DK codeur