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

Upgrade to later analyzer package, which no longer support isUndefined #67

Merged
merged 15 commits into from
May 9, 2020

Conversation

truongsinh
Copy link
Contributor

@truongsinh truongsinh commented May 8, 2020

Close #55 Close #63 Close #64

I added several more unit test, one of which seems to be functionally incorrect, but at least it guards against the crash (due to null element.session)

Comment on lines 136 to 148
// @todo should be `final void Function(T) a;` instead of
// `final void Function(dynamic) a;`
// and `DiagnosticsProperty<void Function(T)>` instead of
// `ObjectFlagProperty<dynamic>.has`
await _expect('typedefTest', completion('''
class TypedefTest<T> extends StatelessWidget {
const TypedefTest(this.a, {Key key}) : super(key: key);

final void Function(dynamic) a;

@override
Widget build(BuildContext _context) => typedefTest<T>(a);
@override
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

functionally seems to be suboptimal, but at least for now it's still working for developer, and not crash due to https://github.com/rrousselGit/functional_widget/pull/67/files#diff-8725693a4d1b56a9253011b227f468ddL7 element.session being null.

@codecov
Copy link

codecov bot commented May 8, 2020

Codecov Report

Merging #67 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #67   +/-   ##
=======================================
  Coverage   99.67%   99.67%           
=======================================
  Files           4        3    -1     
  Lines         308      310    +2     
=======================================
+ Hits          307      309    +2     
  Misses          1        1           
Impacted Files Coverage Δ
...unctional_widget/lib/function_to_widget_class.dart 99.52% <100.00%> (+<0.01%) ⬆️
functional_widget/lib/src/parameters.dart 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 41ae3aa...6e33d1d. Read the comment docs.

@truongsinh truongsinh changed the title Upgrade to later analyzer package, which no longer suppert isUndefined Upgrade to later analyzer package, which no longer support isUndefined May 8, 2020
@truongsinh
Copy link
Contributor Author

I really hate rounding and floating point number 😒

@truongsinh
Copy link
Contributor Author

@rrousselGit done upgrading dependencies, though brace for big changes 😂

@rrousselGit
Copy link
Owner

Haha thanks again for working on that!
You're saving me a lot of trouble ❤️

@rrousselGit rrousselGit merged commit 87d4b5c into rrousselGit:master May 9, 2020
@rrousselGit
Copy link
Owner

Looks good to me, thanks again!

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