SingletonProvider<T> class

Call to SingletonProvider.get computes value and remembers that same value for all calls to SingletonProvider.get per scope.

Implemented types
Available Extensions

Constructors

SingletonProvider(Builder<T> builder)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → T
latefinal

Methods

get() → T
override
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