Skip to content

Instantly share code, notes, and snippets.

Created August 13, 2022 15:56
What would you like to do?
class Awesome {
const Awesome.positional(this.value);
const Awesome.named({required this.value});
final int value;
/// Instanciation
final positional = Awesome.positional(1);
final named = Awesome.named(value: 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment