fromEnvironment static method

AppConstant<String> fromEnvironment(
  1. String name, {
  2. String? defaultValue,
  3. String? description,
})

const String.fromEnvironment(name): read at the app's compile time from --define=<name>=..., never at synth.

Implementation

static AppConstant<String> fromEnvironment(
  String name, {
  String? defaultValue,
  String? description,
}) => EnvironmentConstant(
  name,
  defaultValue: defaultValue,
  description: description,
);