Created
August 13, 2022 15:56
-
-
Save daiki1003/6435bcfd98ff6c3111543396ff69636e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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