Skip to content

Instantly share code, notes, and snippets.

@Zujaj
Created January 9, 2022 10:43
Show Gist options
  • Save Zujaj/b1fa352bca357d7d6d1b39668eaea590 to your computer and use it in GitHub Desktop.
Save Zujaj/b1fa352bca357d7d6d1b39668eaea590 to your computer and use it in GitHub Desktop.
An abstract class for Envify Demonstration.
import 'package:envify/envify.dart';
part 'env.g.dart';
@Envify(name: 'Secret')
abstract class Secret {
/// Holds the API_KEY.
static const api_key = _Secret.api_key;
/// Holds the SITE_KEY.
static const site_key = _Secret.site_key;
/// Holds the CLIENT_SECRET.
static const client_secret = _Secret.client_secret;
/// Holds the CLIENT_ID.
static const client_id = _Secret.client_id;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment