Jonathan Jonathan -4 years ago 169
Dart Question

Can I have a generic method in a injectable class?


class ApiService {
Future<T> fetch<T>(String path) {

this doesn't seem to work

Answer Source

Seems this was fixed very recently and is probably not yet included in the latest 3.0.0-alpha+1

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download