identityWhere static method
IContactIdentity?
identityWhere(
- ISunnyContact? contact,
- bool predicate(
- IContactIdentity identity
- Factory<
IContactIdentity> ? orElse,
Implementation
static IContactIdentity? identityWhere(ISunnyContact? contact, bool Function(IContactIdentity identity) predicate,
{Factory<IContactIdentity>? orElse}) =>
contact?.identities?.firstOrNull(predicate) ?? create(orElse);