Entity<T extends Object> class

Constructors

Entity(T value)
Creates a new instance of Entity with the specified value.

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → T
The value associated with this Entity instance.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Static Properties

defaultGroup Entity<String>
A predefined entity recommended to use as the default group entity for dependencies. This entity can be utilized when no specific group is defined, allowing for a fallback option that simplifies dependency retrieval and management in the DI container.
final
devGroup Entity<String>
A predefined entity recommended to use as the development group entity for dependencies. This entity is useful for managing services that are intended for development purposes, such as debugging tools, mock services, or any other resources that assist during the development process. It helps isolate development-specific functionality from production code.
final
globalGroup Entity<String>
A predefined entity recommended to use as the global group 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.
final
prodGroup Entity<String>
A predefined entity recommended to use as the production group entity for dependencies. This entity is intended for services that are specific to the production environment, ensuring that production-only configurations or resources are appropriately managed and distinguished from other environments (like development or testing).
final
sessionGroup Entity<String>
A predefined entity recommended to use as the session group entity for dependencies. This entity is intended for dependencies that should be specific to the current user's session, ensuring that the state and behavior are isolated from other sessions. It is useful for services that handle user-specific data or contexts.
final
testGroup Entity<String>
A predefined entity recommended to use as the test group entity for dependencies. This entity is designated for managing services that are utilized during testing, allowing for easy access to mock dependencies, test doubles, or any configurations necessary for unit tests and integration tests. It ensures that test services do not interfere with the application's production or development dependencies.
final
themeGroup Entity<String>
A predefined entity recommended to use as the theme group entity for dependencies. This entity is suitable for managing theme-related services or configurations that control the application's visual appearance. It allows for easy access and modification of UI themes, such as light or dark modes.
final
userGroup Entity<String>
A predefined entity recommended to use as the user group entity for dependencies. This entity is designed for managing dependencies that are user-specific, such as user preferences, settings, or any other data that varies from user to user. It helps organize services related to user management.
final

Static Methods

type(Object baseType, [List<Object> subTypes = const []]) Entity<String>
Constructs a Entity representation by replacing occurrences of Object or dynamic in the baseType with corresponding values from subTypes. The replacements are applied sequentially based on their order in subTypes.