listen<T extends Service> method

void listen<T extends Service>([
  1. ServiceListenCondition<T>? condition
])

Implementation

void listen<T extends Service>([ServiceListenCondition<T>? condition]) =>
    dependOnInheritedWidgetOfExactType<ServiceWidget<T>>(
        aspect: condition == null
            ? null
            : (Service service) => condition(service as T));