linkDetails method
Fetch the details of a Grovs link
path is the last part of a Grovs link, for example abc123 for
https://yourapp.sqd.link/abc123. Pass the path only, not the full URL.
Throws GrovsException with one of these codes:
INVALID_ARGUMENTwhenpathis emptySDK_DISABLEDwhile the SDK is disabled with setSDKLINK_DETAILS_ERRORwhen the link is not found or the request fails
Example:
final details = await Grovs().linkDetails('abc123');
print(details.title);
print(details.data);
Implementation
Future<GrovsLinkDetails> linkDetails(String path) async {
if (path.trim().isEmpty) {
throw GrovsException('path is required', code: 'INVALID_ARGUMENT');
}
return GrovsPlatform.instance.linkDetails(path);
}