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 expression here has a type of 'void', and therefore cannot be used. #95

Closed
ejabu opened this issue Aug 13, 2018 · 1 comment
Closed

Comments

@ejabu
Copy link

ejabu commented Aug 13, 2018

image

void _updateShowDates(dynamic action, NextDispatcher next) {
    var now = Clock.getCurrentTime();
    var dates = List.generate(7, (index) => now.add(Duration(days: index)));

    next(new ShowDatesUpdatedAction(dates));
  }

I got this error message "The expression here has a type of 'void', and therefore cannot be used."

Detail

  • OS : Linux 18.04
  • Flutter SDK : Channel dev, v0.5.8
  • Dart version 2.0.0-dev.69.5.flutter-eab492385c
@roughike
Copy link
Owner

Wasn't able to reproduce with 0.7.3 beta. Feel free to reopen if the issue persists.

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