unregisterDevice method
Implementation
Future<String?> unregisterDevice() async {
try {
return await methodChannel.invokeMethod<String>('unregisterDevice');
} on PlatformException catch (e) {
return "Device unregistration failed: ${e.message}";
}
}