ReleaseOwnershipResolver constructor

ReleaseOwnershipResolver({
  1. Future<bool> ownsByProfileId(
    1. String profileId
    )?,
  2. Future<bool> ownsByEmail(
    1. String profileId
    )?,
  3. DateTime now()?,
})

Implementation

ReleaseOwnershipResolver({
  Future<bool> Function(String profileId)? ownsByProfileId,
  Future<bool> Function(String email)? ownsByEmail,
  DateTime Function()? now,
})  : _ownsByProfileId = ownsByProfileId ?? _catalogOwnsByProfileId,
      _ownsByEmail = ownsByEmail ?? _catalogOwnsByEmail,
      _now = now ?? DateTime.now;