identityWhere static method

IContactIdentity? identityWhere(
  1. ISunnyContact? contact,
  2. bool predicate(
    1. IContactIdentity identity
    ), {
  3. Factory<IContactIdentity>? orElse,
})

Implementation

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