How can I fix this? I'm not sure if it is caused by the Flutter update.

There is some conflict with the import 'package:path/path.dart'. In my case, I put an alias in it import 'package:path/path.dart' as Path and it worked.
Use this.context instead of context.
For me it was causing because of the js library (
import 'dart:js';). I removed it and the error was gone.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With