decrypt static method Null safety

Future<String> decrypt(
  1. String key,
  2. String jsonData
)

Implementation

static Future<String> decrypt(String key, String jsonData) async {
  Map<String, dynamic> data = Map<String, dynamic>();
  data["key"] = key;
  data["data"] = jsonData;

  return await _channel.invokeMethod('decrypt', data);
}