plataformNumber static method

dynamic plataformNumber()

Implementation

static plataformNumber() {
  //1- android e 2 - ios
  try {
    if (Platform.isAndroid) {
      return 1;
    } else if (Platform.isIOS) {
      return 2;
    } else if (Platform.isLinux) {
      return 3;
    } else if (Platform.isMacOS) {
      return 4;
    } else if (Platform.isWindows) {
      return 3;
    } else {}
  } on PlatformException {
    return -1;
  }

  return 0;
}