5

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?

Pavel
  • 5,374
  • 4
  • 30
  • 55
dot64dot
  • 531
  • 1
  • 6
  • 15

1 Answers1

1

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

DK codeur
  • 11
  • 2