Skip to content

Instantly share code, notes, and snippets.

class Dog {
String breed;
int age;
String name;
Dog(this.breed, this.age, this.name);
void bark(){
print("woof!");
}
void main() {
double calculateCircleArea (double radius) {
double area = 3.14 * radius * radius;
return area;
}
double radius = 5;
double area = calculateCircleArea(radius);
print(area);
}
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");
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!");
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 {
void main() {
//Car myNormalCar = Car();
//print(myNormalCar.numberOfSeat);
//myNormalCar.drive();
//ElectricCar myTesla = ElectricCar();
@Hackathonwave
Hackathonwave / Love Calculator
Created August 23, 2023 15:01
Uforo loves his Dad!
import 'dart:math';
void main() {
loveCalculator();
}
void main() {
List<String> myList = [
'Uforo Ekong',
'Wisdom Effiong',
'Simeon Moses',
'Endurance Blessed',
'Emem Edem',
];
//print(myList[3]);