getAllLogsByCustomFilter static method

Future<List<Log>> getAllLogsByCustomFilter(
  1. {List<Filter>? filters}
)

getAllLogsByCustomFilter

This will return the list of logs stored based on the custom filters provided by the user

Implementation

static Future<List<Log>> getAllLogsByCustomFilter(
    {List<Filter>? filters}) async {
  //check to see if user provides a valid configuration and logs are enabled
  //if not then don't do anything
  if (_isLogsConfigValid()) {
    return await _flogDao.getAllSortedByFilter(filters: filters!);
  } else {
    throw Exception(Constants.EXCEPTION_NOT_INIT);
  }
}