getPlatform static method

String? getPlatform()

Implementation

static String? getPlatform() {
  String? platform;
  if (Platform.isAndroid) {
    platform = "3";
  } else if (Platform.isIOS) {
    platform = "2";
  } else {
    platform = null;
  }
  return platform;
}