getThreadMessages method

Future<List<ThreadMessage>?> getThreadMessages(
  1. String threadId
)

Implementation

Future<List<ThreadMessage>?> getThreadMessages(String threadId) async {
  final result = await _repository.getThreadMessages(threadId);

  return result.fold(
    (l) => null,
    (r) => r,
  );
}