getSync method

OBJ? getSync(
  1. int id
)

Get a single object by its id or null if the object does not exist.

Implementation

OBJ? getSync(int id) => getAllSync([id])[0];