GlobalEntity class final
A predefined entity recommended to use as the global Entity entity for dependencies. Use This entity for dependencies that need to be accessible throughout the entire application, regardless of the current scope or context. This is ideal for singleton services or configurations that should remain consistent across all parts of the application.
Constructors
- GlobalEntity.new()
-
const
Properties
Methods
-
isDefault(
) → bool -
inherited
-
isNotDefault(
) → bool -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
preferOverDefault(
Entity other) → Entity -
Returns
other
ifthis
is DefaultEntity, otherwise returnsthis
.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited