dot_env_extension.dart

PHOTO EMBED

Sun Jun 19 2022 15:36:56 GMT+0000 (UTC)

Saved by @alefl10 #dart

import 'package:flutter_dotenv/flutter_dotenv.dart';

extension DotEnvX on DotEnv {
  String get privateKey => env['PRIVATE_KEY']!;

  String get contractAddress => env['CONTRACT_ADDRESS']!;

  String get rcpUrl => env['RCP_URL']!;

  String get wsUrl => env['WS_URL']!;
}
content_copyCOPY