getDeviceName method
Implementation
@override
Future<String?> getDeviceName() async {
try {
final String? deviceName =
await methodChannel.invokeMethod<String?>('getDeviceName');
return deviceName;
} on PlatformException {
return "";
}
}