DatepickerModel class
Represents the full state of externally-visible stuff selected by the material date range picker component. This is mostly here to make dependency injection easier.
- Inheritance
-
- Object
- ChangeNotificationProvider<
DatepickerComparison?> - ObservableReference<
DatepickerComparison?> - DatepickerModel
- Annotations
-
- @Injectable()
Constructors
- DatepickerModel([DatepickerComparison? value])
Properties
-
changes
→ Stream<
Change< DatepickerComparison?> > -
Provides a stream of change pairs.
no setterinherited
-
firstNonNull
→ Future<
DatepickerComparison?> -
Blocks until value is non-null, and then completes with that value.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListener → bool
-
Whether there is a subscriber to stream or changes.
no setterinherited
-
nonNullValues
→ Stream<
DatepickerComparison?> -
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<
DatepickerComparison?> -
Provides a stream of object values when the reference changes.
no setterinherited
- value ↔ DatepickerComparison?
-
The currently-set value.
getter/setter pairinherited
-
values
→ Stream<
DatepickerComparison?> -
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.
inherited
-
listen(
Stream< DatepickerComparison?> stream) → Future -
Listens to the given stream and sets the reference's value to whatever is
emitted on the stream.
inherited
-
map<
M> (M mapper(DatepickerComparison?)) → 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
-
notifyChange(
[DatepickerComparison? previous, DatepickerComparison? next]) → void -
Notifies the streams about a new value (or forces the notification without
equality check).
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited