getByConversationId static method

List<PlatformPost> getByConversationId(
  1. String id
)

Returns posts filtered by conversation id.

sync getAll call (should not be used in context with async create)

Implementation

static List<PlatformPost> getByConversationId(String id) {
  return IsarDB.isar.platformPosts
      .where()
      .conversationIdEqualTo(id)
      .findAllSync();
}