This file contains 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
void main() { | |
List<String> myList = [ | |
'Uforo Ekong', | |
'Wisdom Effiong', | |
'Simeon Moses', | |
'Endurance Blessed', | |
'Emem Edem', | |
]; | |
//print(myList[3]); |
This file contains 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
import 'dart:math'; | |
void main() { | |
loveCalculator(); | |
} | |
This file contains 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
void main() { | |
//Car myNormalCar = Car(); | |
//print(myNormalCar.numberOfSeat); | |
//myNormalCar.drive(); | |
//ElectricCar myTesla = ElectricCar(); | |
This file contains 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
import 'package:flutter/material.dart'; | |
import 'package:flutter/rendering.dart'; | |
const Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(const MyApp()); | |
} | |
class MyApp extends StatelessWidget { |
This file contains 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
void main() { | |
var temperature = 68; | |
//if( temperature > 65) { | |
//print("It's hot outside!"); | |
//} | |
//else { | |
//print("It's warm outside!"); | |
//} | |
print(temperature > 65? "It's hot outside!": "It's warm outside!"); |
This file contains 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
void main() { | |
String suspect = "Wisdom Effiong"; | |
switch(suspect) { | |
case "Wisdom Effiong": | |
// execute this code block if the suspect is Wisdom Effiong | |
print("Wisdom Effiong is the culprit"); break; | |
case "Endurance Uko": | |
// execute this code block if the suspect is Endurance Uko | |
print("Endurance Uko is the culprit"); |
This file contains 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
void main() { | |
double calculateCircleArea (double radius) { | |
double area = 3.14 * radius * radius; | |
return area; | |
} | |
double radius = 5; | |
double area = calculateCircleArea(radius); | |
print(area); | |
} |
This file contains 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 Dog { | |
String breed; | |
int age; | |
String name; | |
Dog(this.breed, this.age, this.name); | |
void bark(){ | |
print("woof!"); | |
} |