EnvironmentCredentialsProvider constructor
const
EnvironmentCredentialsProvider()
Creates an AWSCredentialsProvider for credentials injected via the platform-specific environment.
On the VM, this uses Platform.environment
. On the Web, this uses the
Dart environment, e.g. --dart-define
for Flutter.
To always use the Dart environment, use AWSCredentialsProvider.dartEnvironment instead.
Implementation
const EnvironmentCredentialsProvider();