detect method

Future<String?> detect({
  1. String? url,
})

Implementation

Future<String?> detect({String? url}) async {
  if (url == null || url.isEmpty) {
    return await compute(_detectAPI, null);
  }
  return await compute(_detectByURL, url);
}