Created
December 14, 2023 14:14
-
-
Save SharbelOkzan/fa2a41390716d21c1170cb76340b2de6 to your computer and use it in GitHub Desktop.
[Dart issue] Assign value to a first-class member function in the constructor
This file contains hidden or 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 Bar { | |
final int Function() foo; | |
Bar() : foo = () => 1; | |
} | |
class Bar2 { | |
final int Function() foo = () => 1; | |
Bar2(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment