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

Machine.current is typed as dynamic #7

Open
MrGreenTea opened this issue Aug 11, 2021 · 1 comment
Open

Machine.current is typed as dynamic #7

MrGreenTea opened this issue Aug 11, 2021 · 1 comment

Comments

@MrGreenTea
Copy link
Contributor

Hi, thanks for this nice library.
It works well for me.

One thing I noticed is that accessing machine.current is typed as dynamic.

I assume this is because in machine.dart
it is defined as

State? get current => _current;

When it probably should be

State<T>? get current => _current;
@renggli
Copy link
Owner

renggli commented Aug 11, 2021

Thank you for the fix. I'll see what I can do for the setter.

renggli added a commit that referenced this issue Aug 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants