-
Notifications
You must be signed in to change notification settings - Fork 50
Change signature of methods overriding Future.then #7
Conversation
The signature is: Future<T>.then (<S>((T) → dynamic, {onError: Function}) → Future<S>) Use `dynamic` rather than leave off the type to future proof against --no-implicit-dynamic cleanup: dartfmt
This will help with dart-archive/bazel#40 |
Please remove dartfmt changes—this package doesn't use the formatter. |
|
||
Future/*<S>*/ then/*<S>*/(/*=S*/ onValue(T value), {Function onError}) => | ||
_future.then(onValue, onError: onError); | ||
Future/*<S>*/ then/*<S>*/(dynamic onValue(T value), {Function onError}) => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What SDK version did this change in? We should set the minimum SDK constraint to that version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this particular bit changed in 1.19
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Can you publish this or should I? |
Sorry meant to ping you about that right after I merged and then I got distracted. If you grant me uploader permission I can publish and tag it, otherwise if you want to publish that works too. |
The signature is:
Future<T>.then (<S>((T) → dynamic, {onError: Function}) → Future<S>)
Use
dynamic
rather than leave off the type to future proof against--no-implicit-dynamic
cleanup: dartfmt