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