generateLink method
Generate a Grovs link with the specified parameters
Implementation
@override
Future<String> generateLink(GenerateLinkParams params) async {
try {
final result = await methodChannel.invokeMethod<String>(
'generateLink',
params.toMap(),
);
if (result == null) {
throw GrovsException('Failed to generate link: null result');
}
return result;
} on PlatformException catch (e) {
throw GrovsException(
e.message ?? 'Failed to generate link',
code: e.code,
);
}
}