getThreadMessageDetails method

Future<ThreadMessage?> getThreadMessageDetails(
  1. String threadId,
  2. String messageId
)

Implementation

Future<ThreadMessage?> getThreadMessageDetails(
    String threadId, String messageId) async {
  final result =
      await _repository.getThreadMessageDetails(threadId, messageId);

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