getPlatformNumber method
Implementation
int getPlatformNumber() {
if (kDebugMode) {
print('getPlatformNumber');
}
if (Platform.isAndroid) {
if (kDebugMode) {
print('Platform is Android');
}
return Constants.androidPlatformNum;
} else if (Platform.isIOS) {
if (kDebugMode) {
print('Platform is iOS');
}
//widget._flutterPlatformNum = Constants.iosPlatformNum;
return Constants.iosPlatformNum;
} else {
if (kDebugMode) {
print('UnSupported Platform');
}
return -1;
}
}