Skip to content

Instantly share code, notes, and snippets.

@Vanethos
Last active April 15, 2019 06:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Vanethos/fa38f4ca4a210563c5ddc0de86e60178 to your computer and use it in GitHub Desktop.
Save Vanethos/fa38f4ca4a210563c5ddc0de86e60178 to your computer and use it in GitHub Desktop.
class HttpClient {
//...
}
class NetworkEndpointsA {
HttpClient client;
NetworkEndpointsA(this.client);
}
class NetworkEndpointsB
HttpClient client;
NetworkEndpointsB(this.client);
}
class HomeBloc {
NetworkEndpointsA endpointsA;
NetworkEndpointsA endpointsB;
HomeBloc(this.endpointsA, this.endpointsB);
}
@xni06
Copy link

xni06 commented Apr 15, 2019

Line 19 should read NetworkEndpointsB endpointsB; and not NetworkEndpointsA endpointsB;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment