deviceName property

Future<String> deviceName

获取设备名称

Implementation

Future<String> get deviceName async {
  try {
    return await _channel.invokeMethod("getDeviceName") ?? "";
  } catch (e) {
    debugPrint("getDeviceName.error: $e");
    return "";
  }
}