16 lines
429 B
Dart
16 lines
429 B
Dart
import 'package:redux/redux.dart';
|
|
import 'package:notube/store/app.state.dart';
|
|
import 'package:notube/models/Video.dart';
|
|
|
|
Middleware<AppState> getVideos(Video _video) {
|
|
return (Store<AppState> store, action, NextDispatcher dispatch) async {
|
|
dispatch(action);
|
|
try {
|
|
// TODO: Write here your middleware logic and api calls
|
|
} catch (error) {
|
|
// TODO: API Error handling
|
|
print(error);
|
|
}
|
|
};
|
|
}
|