findById method

Future<NotificationMessageData?> findById(
  1. int notificationMessageId
)

Implementation

Future<NotificationMessageData?> findById(int notificationMessageId) async {
  return await (db.select(
    db.notificationMessage,
  )..where((e) => e.id.equals(notificationMessageId))).getSingleOrNull();
}