get method

  1. @override
Future<OBJ?> get(
  1. Id id
)
override

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

Implementation

@override
Future<OBJ?> get(Id id) {
  return _spanHelper.asyncWrapInSpan(
    'get',
    () {
      return _isarCollection.get(id);
    },
    dbName: _dbName,
    collectionName: name,
  );
}