Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The method 'HttpHeadersWrapper.set' has fewer named arguments than those of overridden method 'HttpHeaders.set'. [Dart 2.8] #6

Closed
jumperchen opened this issue Mar 19, 2020 · 0 comments
Labels

Comments

@jumperchen
Copy link
Member

Using rikulo_commons-4.0.1 on Dart 2.8 will cause the following error.

/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/rikulo_commons-4.0.1/lib/src/io/http_wrapper.dart:382:8: Error: The method 'HttpHeadersWrapper.set' has fewer named arguments than those of overridden method 'HttpHeaders.set'.
void set(String name, Object value) {

Because of the http.dart, the HttpHeaders.add and the HttpHeaders.set, have three parameters in Dart 2.8 version as follows.

void set(String name, Object value,
{@SInCE("2.8") bool preserveHeaderCase = false});

The issue refers to rikulo/socket.io-client-dart#69

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant