Professional Documents
Culture Documents
It is actually a cross
native platform.
dart also has a concept called type inference that means the var automatically
knows which data to store.
class Person
{
String name="john;
int age=23;
}
double addNumbers(double num1,double num2)
{
print(num1+num2);
}
void main()
{
var P1=Person();//creating an instance /object for class person.
void main() {
runApp(MyApp());
}
// we can even write main() like below:
//void main()=>runApp(MyApp());
3 types of design:
material design
cupertino design
widget design