getOneById method Null safety

  1. @override
Future<T?> getOneById(
  1. String? correlationId,
  2. K? id
)
override

Gets a data item by its unique id.

  • correlationId (optional) transaction id to trace execution through call chain.
  • id an id of data item to be retrieved. Return Future that receives data item Throws error.