createLink method
Implementation
@override
Future<Map<String, dynamic>?> createLink(Map<String, dynamic> params) async {
try {
final result = await methodChannel.invokeMethod<Map>('createLink', {
'params': params,
});
Map<String, dynamic> data = {};
if (result != null) {
result.forEach((key, value) {
if (key is String) {
data[key] = value;
}
});
}
return data;
} catch (e) {
// print(e);
}
return null;
}