modularityExportEnvName โ
const String modularityExportEnvNameName 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 { ... }