EventProvider<E extends Event> class

Provides Events to a TimetableController.

We provide the following implementations:

Constructors

EventProvider()
const
EventProvider.list(List<E> events)
Creates an EventProvider based on a fixed list of Events. [...]
factory
EventProvider.simpleStream(Stream<List<E>> eventStream)
Creates an EventProvider accepting a Stream of Events. [...]
factory
EventProvider.stream({@required StreamedEventGetter<E> eventGetter, VoidCallback onDispose})
Creates an EventProvider accepting a Stream of Events based on the currently visible range. [...]
factory

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

dispose() → void
Discards any resources used by the object. [...]
getAllDayEventsIntersecting(DateInterval interval) Stream<Iterable<E>>
getPartDayEventsIntersecting(LocalDate date) Stream<Iterable<E>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
onVisibleDatesChanged(DateInterval visibleRange) → void
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited