Skip to content

Instantly share code, notes, and snippets.

@mraleph
Created May 30, 2023 09: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 mraleph/7f812f3dabd5ba10843d653fc6123430 to your computer and use it in GitHub Desktop.
Save mraleph/7f812f3dabd5ba10843d653fc6123430 to your computer and use it in GitHub Desktop.
vagrant-flurry-5605
class X {
final int Function() foo;
const X({this.foo = _defaultFoo});
static int _defaultFoo() => 0;
}
void main() {
print(const X().foo());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment