createLink method

  1. @override
Future<Map<String, dynamic>?> createLink(
  1. Map<String, dynamic> params
)
override

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;
}