fromEnv static method

dynamic fromEnv({
  1. String prefix = "",
})

Load configuration from environment variables

Implementation

static fromEnv({String prefix = ""}) {
  final accessToken = Platform.environment["${prefix}ACCESS_TOKEN"];
  return Configuration(
    accessToken: accessToken,
  );
}