findPreferredMethod static method

FutureOr<Contactable?> findPreferredMethod(
  1. ISunnyContact? contact,
  2. ContactableType? type
)

Implementation

static FutureOr<Contactable?> findPreferredMethod(
    ISunnyContact? contact, ContactableType? type) async {
  if (contact == null || type == null) return null;
  return findPreferredMethodSunny(contact, type);
}