I just upgraded to latest flutter version 2.2, and now this piece of code is not working.
import 'dart:io'; //this line is greyed out now
.
.
file = File("${dir.path}/file.pdf"); //error: Abstract classes can't be instantiated.
I checked the release notes, and could not locate any breaking changes regarding this. The Documentaion shows the File class as abstract, and still the example says:
var myFile = File('file.txt');
What should be the alternative to replace this line?