Search code snippets, questions, articles...

Platform check

import 'dart:io' show Platform;

if (Platform.isIOS) {
  doSmthIOSSpecific();
}

if (Platform.isAndroid) {
  doSmthAndroidSpecific();
}
Was this helpful?
0 Comments
Programming Feeds
Learn something new everyday on Devsheet