listen<T> function

T listen<T>([
  1. Type? type
])

Implementation

T listen<T>([Type? type]) {
  type ??= T;
  return globalServiceLocator.getByType<T>(type);
}