getHistoryMessages method Null safety

Future<List> getHistoryMessages(
  1. {required int? from,
  2. required int? limit,
  3. bool isDescend = false}
)

Implementation

Future<List> getHistoryMessages(
    {required int? from, required int? limit, bool isDescend = false}) async {
  List msgs = await JmessageFlutter().getHistoryMessages(
      type: target.targetType,
      from: from,
      limit: limit,
      isDescend: isDescend);
  return msgs;
}