getBySource method Null safety

OwnershipModel? getBySource(
  1. String source,
  2. {String? origin}
)

Gets a OwnershipModel by its source and origin from local database.

If no origin is provided the _defaultOrigin will be used

Implementation

OwnershipModel? getBySource(String source, {String? origin}) =>
    _repository.getBySource(source, origin ?? _defaultOrigin);