getDislikeAdReasons method

Future<List<DislikeAdReason>> getDislikeAdReasons()

Implementation

Future<List<DislikeAdReason>> getDislikeAdReasons() async {
  List<String>? reasonsList = await _channel.invokeMethod("getDislikeReasons");
  List<DislikeAdReason> responseList = <DislikeAdReason>[];
  if (reasonsList != null) {
    reasonsList.forEach((String reason) {
      responseList.add(new DislikeAdReason(reason));
    });
  }
  return responseList;
}