deviceIp property

String get deviceIp

Get the device ip address from the ping command If the ping command doesn't contain an ip address, then throw an error

Implementation

String get deviceIp => pingCommand.firstWhere(
      (element) => InternetAddress.tryParse(element) != null,
    );