# findAllServicesInANetwork method Null safety

Future<String?> findAllServicesInANetwork(

1. String network,
2. int startPort,
3. int endPort

)

## Implementation

    static Future<String?> findAllServicesInANetwork(
        String network, int startPort, int endPort) async {
      final String? json = await _channel.invokeMethod(
          'find_all_services', <String, dynamic>{
        'network': network,
        'startPort': startPort,
        'endPort': endPort
      });

      if (json == "") {
        return null;
      }

      return json;
    }