getDeviceInfo method
Implementation
@override
Future<String?> getDeviceInfo() async {
try {
final String result = await methodChannel.invokeMethod('getDeviceInfo');
return result;
} on PlatformException catch (e) {
throw Exception("${e.message}");
} catch (e) {
throw Exception("Unexpected error: ${e.toString()}");
}
}