getServices<T> method

Iterable<T> getServices<T>()

Get an enumeration of services of type T from the ServiceProvider.

Implementation

Iterable<T> getServices<T>() {
  var result = getServiceFromType(Iterable<T>);

  if (result is List<dynamic>) {
    return result.cast<T>();
  }

  return List<T>.empty();

  //throw Exception('No service found for registered type.');
}