2019-04-06 18:11:42 -06:00
|
|
|
import 'dart:async';
|
|
|
|
|
|
|
|
|
|
import '../resources/firestore_provider.dart';
|
|
|
|
|
import '../resources/firebase_storage_provider.dart';
|
2019-04-06 20:38:37 -06:00
|
|
|
import '../services/current_selection_service.dart';
|
2019-04-06 18:11:42 -06:00
|
|
|
|
2019-04-06 20:38:37 -06:00
|
|
|
/// A business logic component that manages the state for an event screen.
|
|
|
|
|
class EventBloc {
|
|
|
|
|
/// An instance of the current selection service.
|
|
|
|
|
final CurrentSelectionService _selectionService = currentSelectionService;
|
|
|
|
|
|
|
|
|
|
/// The name of the event that's currently selected.
|
|
|
|
|
///
|
|
|
|
|
/// Read only.
|
|
|
|
|
String get selectedEventName => _selectionService.event.name;
|
|
|
|
|
|
|
|
|
|
/// Fetches the tasks for the current user that a part of the currently
|
|
|
|
|
/// selected event.
|
|
|
|
|
void fetchTasks() {}
|
|
|
|
|
void dispose() {}
|
|
|
|
|
}
|