style: prettier

This commit is contained in:
davhojt 2023-03-11 19:48:06 +02:00 committed by Dav Hojt
parent 4a13182ce9
commit 4d7ce71190
6 changed files with 16 additions and 8 deletions

View File

@ -11,6 +11,7 @@ Attributes:
- `radius`: `double`
Getters:
- `area`
- `perimeter`
- `rightMostCoordinate`: (x axis)
@ -19,6 +20,7 @@ Getters:
- `lowestCoordinate`: (y axis)
Constructor:
- `x`: `required`
- `y`: `required`
- `radius`: `required`

View File

@ -3,6 +3,7 @@
### Instructions
Write a function named `namedRequiredSum`, that returns the sum of its required [named](https://dart.dev/guides/language/language-tour) `int` parameters:
- `first`
- `second`
- `third`

View File

@ -23,6 +23,7 @@ Constructor:
### Object Oriented Programming
Dart supports object oriented programming, and it features heavily in Flutter. Classes have 2 main concepts.
- Attributes: store data about the instance of a class.
- Methods: are func functions, which can use class attributes for various manipulations.
@ -48,7 +49,7 @@ class Point {
Point(double x, double y) {
// Sets the attributes to the value of the constructor arguments.
this.y = y;
this.x = x;
this.x = x;
}
}
```
@ -62,7 +63,7 @@ class Point {
double x;
double y;
Point(this.x, this.y);
Point(this.x, this.y);
}
```

View File

@ -11,12 +11,13 @@ Attributes:
- `secretKey`: private `string`. Defaults to "01".
Constructor:
- `name`: `string`
- `cityOfOrigin`: `string`
- `age`: `int`
- `height`: `int`
- `batch`: `int`
- `level`: `int`
- `name`: `string`
- `cityOfOrigin`: `string`
- `age`: `int`
- `height`: `int`
- `batch`: `int`
- `level`: `int`
### Inheritance

View File

@ -11,11 +11,13 @@ Attributes:
- `ranking`: `private int?`
Getters:
- `name`
- `city`
- `ranking`
Constructor:
- `name`: `required`
- `city`: `required`
- `ranking`: `optional`

View File

@ -13,6 +13,7 @@ String strSpongebob = 'Spongebob';
```
Declare and initialize the following variables:
- `obj` of type `Object`, containing any value.
- `planet` of type `String`, containing the name of the planet you live on.
- `year` of type `int`, containing the current year.