INNER CODE UNIT · Dart

errorExample

antz22/ultimate-guide-to-flutter · code/dart_examples.dart:22

errorExample = 2; // ERROR

// 'Final' keyword
final String name;


// ====FUNCTIONS====

// doesn't return anything but still executes some code
void main() {
  print('hello world');
}

// prints 'hello' but also returns the string 'complete'
String hello(int reps) {
  for (int i = 0; i < reps; i++) {
    print('hello');
  }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…