I hereby claim:
- I am ashishkarki on github.
- I am ashishkarki (https://keybase.io/ashishkarki) on keybase.
- I have a public key ASCaoPvC91bmG7yfUfwg5AQF_8eR77o4o8f0T4G1TqxnIAo
To claim this, I am signing this object:
import 'dart:math'; | |
mixin Area { | |
double getSquareArea(double side) { | |
return side * side; | |
} | |
double getCircleArea(double radius) { | |
return pi * radius * radius; | |
} |
void sum(List<int> list){ | |
int sum = 0; | |
// 1. first use a for loop to print the sum | |
for(int element in list) { | |
sum += element; | |
} | |
print('sum using for loop is: $sum'); | |
// 2. second use fold to print sum |
void main() { | |
runApp( | |
MaterialApp( | |
home: Center( | |
child: Text('Hello there ashish'), | |
), | |
routes: { | |
WidgetA.routeName: (context) => WidgetA(), | |
WidgetB.routeName: (context) => WidgetB(), | |
}, |
I hereby claim:
To claim this, I am signing this object: