getByBlockId method Null safety

List<TransactionModel> getByBlockId(
  1. Uint8List? id
)

Gets the List of TransactionModel from the BlockModel from its BlockModel.id.

Implementation

List<TransactionModel> getByBlockId(Uint8List? id) => _select(
    whereStmt: id == null
        ? 'WHERE $columnBlockId IS NULL'
        : "WHERE $columnBlockId = x'${Bytes.hexEncode(id)}'");