JuneInterface class abstract
JuneInterface allows any auxiliary package to be merged into the "June" class through extensions
- Available extensions
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- intelligentManagement ↔ IntelligentManagement
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
call<
T> () → T -
Available on JuneInterface, provided by the Instant extension
-
delete<
S> ({String? tag, String? key, bool force = false}) → bool -
Available on JuneInterface, provided by the Instant extension
Delete registered Class InstanceS
(ortag
) and, closes any open controllersDisposableInterface
, cleans up the memory -
deleteAll(
{bool force = false}) → void -
Available on JuneInterface, provided by the Instant extension
Delete all registered Class Instances and, closes any open controllersDisposableInterface
, cleans up the memory -
find<
S> ({String? tag}) → S -
Available on JuneInterface, provided by the Instant extension
Finds the registered type <S
> (ortag
) In case of using June.create
to register a type <S
> ortag
, it will create an instance each time you call find. If the registered type <S
> (ortag
) is a Controller, it will initialize it's lifecycle. -
findOrNull<
S> ({String? tag}) → S? -
Available on JuneInterface, provided by the Instant extension
The findOrNull method will return the instance if it is registered; otherwise, it will return null. -
getInstanceDetails<
S> ({String? tag}) → InstanceDetails -
Available on JuneInterface, provided by the Instant extension
-
getState<
S> (S dependencyBuilder(), {String? tag, bool permanent = true}) → S -
Available on JuneInterface, provided by the Instant extension
-
isPrepared<
S> ({String? tag}) → bool -
Available on JuneInterface, provided by the Instant extension
Checks if a lazy factory callbackJune.lazyPut()
that returns an Instance<S
> is registered in memory. -
isRegistered<
S> ({String? tag}) → bool -
Available on JuneInterface, provided by the Instant extension
Check if a Class Instance<S
> (ortag
) is registered in memory. -
lazyPut<
S> (BuilderPattern< S> builder, {String? tag, bool? fenix, bool permanent = false}) → void -
Available on JuneInterface, provided by the Instant extension
Creates a new Instancelazily from the<S>builder()
callback. -
lazyReplace<
P> (BuilderPattern< P> builder, {String? tag, bool? fenix}) → void -
Available on JuneInterface, provided by the Instant extension
Replaces a parent instance with a new Instance -
markAsDirty<
S> ({String? tag, String? key}) → void -
Available on JuneInterface, provided by the Instant extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
put<
S> (S dependencyBuilder(), {String? tag, bool permanent = true}) → S -
Available on JuneInterface, provided by the Instant extension
Holds a reference to every registered callback when usingJune.lazyPut()
-
reload<
S> ({String? tag, String? key, bool force = false}) → void -
Available on JuneInterface, provided by the Instant extension
-
reloadAll(
{bool force = false}) → void -
Available on JuneInterface, provided by the Instant extension
-
replace<
P> (P child, {String? tag}) → void -
Available on JuneInterface, provided by the Instant extension
Replace a parent instance of a class in dependency management with achild
instance -
resetInstance(
{bool clearRouteConnections = true}) → bool -
Available on JuneInterface, provided by the ResetInstance extension
Clears all registered instances (and/or tags). Even the persistent ones. This should be used at the end or tearDown of unit tests. -
spawn<
S> (BuilderPattern< S> builder, {String? tag, bool permanent = true}) → void -
Available on JuneInterface, provided by the Instant extension
Creates a new Class InstanceS
from the builder callbackS
. Every time find<S
>() is used, it calls the builder method to generate a new InstanceS
. It also registers eachinstance.onClose()
with the current RouteJune.reference
to keep the lifecycle active. Is important to know that the instances created are only stored per Route. So, if you callJune.delete<T>()
the "instance factory" used in this method (June.spawn<T>()
) will be removed, but NOT the instances already created by it. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited