sortArgs method

List<Object>? sortArgs()

Implementation

List<Object>? sortArgs() {
  if (args == null) return null;

  final newList = List<Object>.from(args!);

  for (var i = 0; i < newList.length; i++) {
    if (newList[i] is Map) {
      newList[i] = sortMapKeys(newList[i] as Map<String, dynamic>);
    }
  }
  return newList;
}