sunnyIdentity static method

IContactIdentity? sunnyIdentity(
  1. ISunnyContact contact
)

Implementation

static IContactIdentity? sunnyIdentity(ISunnyContact contact) =>
    contact.identities
        .orWhere((identity) => identity.sourceType == sunnySource)
        .firstOr();