point-source / dart_ping

Multi-platform network ping utility for Dart
30 stars 13 forks source link

Extract IP,TTL ,Time and display them in a list #45

Closed panos42 closed 1 year ago

panos42 commented 1 year ago

Hey,the current format I display PingResponse(seq:1, ip:142.250.184.238,ttl:56, time:42.2 ms) I want to show only the ip ttl and time in each list tile without the PingResponse( .. etc. How could I parse the result and only show the important info in a clearer way ?

point-source commented 1 year ago

PingResponse is a dart object with fields for each of the values you are trying to access. No parsing necessary. You can see the documentation about these fields here: https://pub.dev/documentation/dart_ping/latest/dart_ping/PingResponse-class.html

If that does not solve your issue, please post a code example of what you are trying to do (even if it doesnt work) so I have a better idea.

point-source commented 1 year ago

Closing due to inactivity