init method
Implementation
Future<bool> init() async {
try {
final deviceInfo = DeviceInfoPlugin();
if (Platform.isAndroid) {
await _getAndroidInfo(deviceInfo);
} else if (Platform.isIOS) {
await _getIosInfo(deviceInfo);
} else if (Platform.isWindows) {
await _getWindowsInfo(deviceInfo);
} else if (Platform.isMacOS) {
await _getMacOsInfo(deviceInfo);
}
} catch (e) {
return false;
}
return true;
}