optionalFileListFuture method

Future<MessageOrError> optionalFileListFuture({
  1. String? address,
  2. String orderBy = 'time_downloaded DESC',
  3. int limit = 10,
  4. String filter = 'downloaded',
  5. String? filterInnerPath,
})

Implementation

Future<MessageOrError> optionalFileListFuture({
  String? address,
  String orderBy = 'time_downloaded DESC',
  int limit = 10,
  String filter = 'downloaded',
  String? filterInnerPath,
}) async {
  var resultStr = await ZeroNet.instance.cmdFuture(
    ZeroNetCmd.optionalFileList,
    params: {
      'address': address,
      'orderby': orderBy,
      'limit': limit,
      'filter': filter,
      'filter_inner_path': filterInnerPath,
    },
  );
  return resultStr.toMsgOrErr;
}