Since Flutter’s first release, developers have been using the Platform class from dart:io to target features for different platforms like: import 'dart:io';
print(Platform.isAndroid); // returns true on Android, otherwise false
print(Platform.isIOS); // returns true on iOS, otherwise false However, as Flutter started supporting the web platform, things get really complicated…