findHookedService<T extends Service> method

HookedService<dynamic, dynamic, T> findHookedService <T extends Service>(
  1. Pattern path
)

Shorthand for finding a HookedService in a statically-typed manner.

Implementation

HookedService<dynamic, dynamic, T> findHookedService<T extends Service>(
    Pattern path) {
  return findService(path) as HookedService<dynamic, dynamic, T>;
}