This error got me confusing since I can't use the class Platform but I have already added its library dart.io (and even upgraded the pubspec file). The strange thing is that the class appears : enter image description here
but when Im using it, it throws an error enter image description here
any idea if it is a flutter bug?