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']!; }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter