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