Skip to content

Commit

Permalink
Revert creating redundant typedef for a date change callback.
Browse files Browse the repository at this point in the history
  • Loading branch information
Iiro Krankka committed Sep 15, 2018
1 parent e0be471 commit ed64321
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/ui/showtimes/showtime_page_view_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import 'package:inkino/redux/show/show_selectors.dart';
import 'package:meta/meta.dart';
import 'package:redux/redux.dart';

typedef void DateChangeCallback(DateTime newDate);

class ShowtimesPageViewModel {
ShowtimesPageViewModel({
@required this.status,
Expand All @@ -23,7 +21,7 @@ class ShowtimesPageViewModel {
final List<DateTime> dates;
final DateTime selectedDate;
final List<Show> shows;
final DateChangeCallback changeCurrentDate;
final Function(DateTime) changeCurrentDate;
final Function refreshShowtimes;

static ShowtimesPageViewModel fromStore(Store<AppState> store) {
Expand Down

0 comments on commit ed64321

Please sign in to comment.