Skip to content

Instantly share code, notes, and snippets.

@daiki1003
Created August 13, 2022 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daiki1003/6435bcfd98ff6c3111543396ff69636e to your computer and use it in GitHub Desktop.
Save daiki1003/6435bcfd98ff6c3111543396ff69636e to your computer and use it in GitHub Desktop.
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