getById abstract method

Future<T?> getById(
  1. String id
)

Retrieves the item with the given id from the local repository.

Returns null if the item is not found.

Implementation

Future<T?> getById(String id);