DatepickerSelection class

Represents something that might be chosen by some hypothetical date picker component.

This class is just a dumb wrapper around ObservableView. It's here mostly so that dependency injection can be used without going through all that TypeLiteral unpleasantness. Having an actual implementation around is also handy in tests.

Inheritance

Constructors

DatepickerSelection.test([DateRangeComparison? initialValue])
Constructs a new selection. Intended for tests: this creates a new ObservableReference but doesn't give you any way of disposing of its streams, so it'd result in memory leaks in prod.
DatepickerSelection.wrap(ObservableView<DateRangeComparison?> _ref)

Properties

changes Stream<Change<DateRangeComparison?>>
Provides a stream of change pairs.
no setterinherited
firstNonNull Future<DateRangeComparison?>
Blocks until value is non-null, and then completes with that value.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
nonNullValues Stream<DateRangeComparison?>
A Stream of all non-null values on this view, including the current value at the time the stream is listened to (if it's non-null).
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stream Stream<DateRangeComparison?>
Provides a stream of object values when the internals change.
no setteroverride
value DateRangeComparison?
no setteroverride
values Stream<DateRangeComparison?>
A Stream of all values on this view, including the current value at the time the stream is listened to.
no setterinherited

Methods

dispose() → void
Disposes this disposable and any resources it has open.
override
map<M>(M mapper(DateRangeComparison?)) ObservableView<M>
Returns a new ObservableView which is created by lazily calling mapper on this view's value, stream, and changes properties.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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