OptionsMonitor<TOptions> class
Used for notifications when TOptions
instances change.
- Inheritance
-
- Object
- Disposable
- OptionsMonitor
- Implementers
Constructors
-
OptionsMonitor.new(OptionsFactory<
TOptions> factory, Iterable<OptionsChangeTokenSource< sources, OptionsMonitorCache<TOptions> >TOptions> cache)
Properties
- currentValue → TOptions
-
The present value of the options.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void -
Performs application-defined tasks associated with freeing, releasing,
or resetting unmanaged resources.
override
-
get(
String? name) → TOptions -
Returns a configured
TOptions
instance with the givenname
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onChange(
OnChangeListener< TOptions> listener) → Disposable? -
Registers a listener to be called whenever a named
TOptions
changes. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited