initial commit (migrated)
This commit is contained in:
commit
b594facb51
143 changed files with 11057 additions and 0 deletions
31
lib/core/env.dart
Normal file
31
lib/core/env.dart
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
// ignore_for_file: public_member_api_docs
|
||||
|
||||
abstract class Env {
|
||||
String get quoteApiScheme;
|
||||
|
||||
String get quoteApiHost;
|
||||
|
||||
int? get quoteApiPort;
|
||||
|
||||
String get authPublicKey;
|
||||
|
||||
String get sentryDsn;
|
||||
}
|
||||
|
||||
class EnvImpl implements Env {
|
||||
@override
|
||||
String get quoteApiScheme => const String.fromEnvironment('QUOTE_API_SCHEME');
|
||||
|
||||
@override
|
||||
String get quoteApiHost => const String.fromEnvironment('QUOTE_API_HOST');
|
||||
|
||||
@override
|
||||
int? get quoteApiPort =>
|
||||
int.tryParse(const String.fromEnvironment('QUOTE_API_PORT'));
|
||||
|
||||
@override
|
||||
String get authPublicKey => const String.fromEnvironment('AUTH_PUBLIC_KEY');
|
||||
|
||||
@override
|
||||
String get sentryDsn => const String.fromEnvironment('SENTRY_DSN');
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue