findAdapterFor method

NotificationAdapter? findAdapterFor(
  1. Widget notification
)

Trouve un adaptateur capable de gérer le widget donné ou retourne null

Implementation

NotificationAdapter? findAdapterFor(Widget notification) {
  for (final adapter in _adapters) {
    if (adapter.canHandle(notification)) {
      return adapter;
    }
  }
  return null;
}