Skip to content
modularity_injectable โ€บ Constants โ€บ modularityExportEnvName constant

modularityExportEnvName โ€‹

const String modularityExportEnvName

Name of the environment flag that marks dependencies as exportable from a module's public scope.

Annotate injectable registrations with this environment to include them in Module.exports:

dart
@Environment(modularityExportEnvName)
@LazySingleton(as: AuthService)
class AuthServiceImpl implements AuthService { ... }