Query relating to dart

Why is not this allowed within categories, however the similar way can be utilized to assign some worth to a variable within the principle serve as or another manner

magnificence Class1 {
String someString;
someString = ‘hi’;
} //This purpose an error

void major() {
String s1;
s1 = ‘hi’;
} // This does not purpose an error

View Reddit by way of psychobacterView Supply

You may also like...

WP2Social Auto Publish Powered By : XYZScripts.com