getThreadMessages method
Implementation
Future<List<ThreadMessage>?> getThreadMessages(String threadId) async {
final result = await _repository.getThreadMessages(threadId);
return result.fold(
(l) => null,
(r) => r,
);
}
Future<List<ThreadMessage>?> getThreadMessages(String threadId) async {
final result = await _repository.getThreadMessages(threadId);
return result.fold(
(l) => null,
(r) => r,
);
}