roughike / inKino

A multiplatform Dart movie app with 40% of code sharing between Flutter and the Web.
https://inkino.app
Apache License 2.0
3.64k stars 708 forks source link

The expression here has a type of 'void', and therefore cannot be used. #95

Closed ejabu closed 6 years ago

ejabu commented 6 years ago

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

roughike commented 6 years ago

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