INNER CODE UNIT · Dart
response
antz22/ultimate-guide-to-flutter · code/dart_examples.dart:50
String response = await someAPICall(); // assuming the api call returns a string
return response;
}
// ====CONDITIONALS====
bool someCondition = true;
// placing it in a function in order to run the code
void main() {
if (someCondition) {
print('someCondition is true');
} else {
print('someCondition is false');
}
}
// ====LOOPS====