Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dawn review #1

Merged
merged 107 commits into from
Aug 7, 2022
Merged
Changes from 1 commit
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
7ae5471
title amend and docs link added
tastethedream Aug 6, 2022
6e0a081
title amend to correspond with book and link to docs added
tastethedream Aug 6, 2022
aeab07b
amended title in line with book
tastethedream Aug 6, 2022
2b67225
hello world code added
tastethedream Aug 6, 2022
3d81d73
amended title in line with book
tastethedream Aug 6, 2022
e6e06ea
extra files removed
tastethedream Aug 6, 2022
0c03732
declaring an integer code added
tastethedream Aug 6, 2022
4d34cce
double code added
tastethedream Aug 6, 2022
b312bff
bool code added
tastethedream Aug 6, 2022
da4bd0b
string code added
tastethedream Aug 6, 2022
544837a
print statement code added
tastethedream Aug 6, 2022
8da5dc4
all #print statement code added
tastethedream Aug 6, 2022
262d7d2
all #const code added
tastethedream Aug 6, 2022
a3d141f
all #final code added
tastethedream Aug 6, 2022
6ba6a9d
all #Null code added
tastethedream Aug 6, 2022
1936d6f
excess files removed
tastethedream Aug 6, 2022
c5b7938
If statment example added
tastethedream Aug 6, 2022
e11e561
Do/While example added
tastethedream Aug 6, 2022
7c67c37
For.For Each examples added
tastethedream Aug 6, 2022
902ae76
Switch statement example added
tastethedream Aug 6, 2022
de8014f
Enum examples added
tastethedream Aug 6, 2022
cdca545
Exceptions example added
tastethedream Aug 6, 2022
0e0ef98
Function example added
tastethedream Aug 6, 2022
ec8c320
Parameters example added
tastethedream Aug 6, 2022
c606c19
Returning values example added
tastethedream Aug 6, 2022
57e5b60
Anonymous Function example added
tastethedream Aug 6, 2022
a10be7a
Parametgers examples added
tastethedream Aug 6, 2022
29320be
Map object example added
tastethedream Aug 6, 2022
43c93e2
Retrieve map content example added
tastethedream Aug 6, 2022
d06eb49
Validate key example added
tastethedream Aug 6, 2022
32f0115
List example added
tastethedream Aug 6, 2022
0bd37f1
Adding List content example added
tastethedream Aug 6, 2022
1087c7b
Complex List example added
tastethedream Aug 6, 2022
bf0a6ff
Class example added
tastethedream Aug 6, 2022
08a713b
Class constructor example added
tastethedream Aug 6, 2022
6d4d857
Extending a class example added
tastethedream Aug 6, 2022
5360e90
Extending with mixins example added
tastethedream Aug 6, 2022
759dcbf
importing a package# example added
tastethedream Aug 6, 2022
b9ed6ae
correct title added
tastethedream Aug 6, 2022
0e234aa
creating Flutter project examples added
tastethedream Aug 6, 2022
3502861
Stateful widget example added
tastethedream Aug 6, 2022
8005bd2
Stateless widget example added
tastethedream Aug 6, 2022
0c62bf7
Refactored widget example added
tastethedream Aug 6, 2022
c41c19e
Banner removed example added
tastethedream Aug 6, 2022
d115b51
Scaffold example added
tastethedream Aug 6, 2022
b69281d
Appbar example added
tastethedream Aug 6, 2022
1a9ab62
Expanded widget example added
tastethedream Aug 6, 2022
cf909c6
Container example added
tastethedream Aug 6, 2022
0e7fdf6
Center example added
tastethedream Aug 6, 2022
ba001fd
Sized box example added
tastethedream Aug 6, 2022
3fa579d
Column example added
tastethedream Aug 6, 2022
ae55700
Row example added
tastethedream Aug 6, 2022
26077d5
Rich text example added
tastethedream Aug 6, 2022
dfe8153
Google fonts examples added
tastethedream Aug 6, 2022
1507016
Host platform examples added
tastethedream Aug 6, 2022
c24089b
Placeholder example added
tastethedream Aug 6, 2022
568afb0
Layout Builder example added
tastethedream Aug 6, 2022
30d13e3
Media query example added
tastethedream Aug 6, 2022
624dabc
Vertical list example added
tastethedream Aug 6, 2022
e13686b
Horizontal list example added
tastethedream Aug 6, 2022
3036ea7
Sliver Appbar example added
tastethedream Aug 6, 2022
238b848
Grid example added
tastethedream Aug 6, 2022
fe1e4d3
Snackbar examples added
tastethedream Aug 6, 2022
32cf5ce
Routes example added
tastethedream Aug 6, 2022
b102a24
Navigation Drawer example added
tastethedream Aug 6, 2022
8445626
Tabs example added
tastethedream Aug 6, 2022
654b4ec
Bottom Navigation example added
tastethedream Aug 6, 2022
4daaeb6
structure added
tastethedream Aug 6, 2022
87f0316
Refactoring data example added
tastethedream Aug 6, 2022
de3c302
Local data management example added
tastethedream Aug 6, 2022
59e7c47
Asset management example added
tastethedream Aug 6, 2022
e58629f
Remote data example added
tastethedream Aug 6, 2022
d12c8a5
Automating JSON example added
tastethedream Aug 6, 2022
cb92b50
structure added
tastethedream Aug 6, 2022
d6e0681
structure added
tastethedream Aug 6, 2022
1345cd9
structure added
tastethedream Aug 6, 2022
87680af
curl request example added
tastethedream Aug 6, 2022
bf8868c
backend spreadsheet example added
tastethedream Aug 6, 2022
d1795f5
Serverless examples added
tastethedream Aug 6, 2022
ea70b18
Structure added
tastethedream Aug 7, 2022
4ea397f
Console link added
tastethedream Aug 7, 2022
e23ee55
set up examples added
tastethedream Aug 7, 2022
d7c73ea
client integration examples added
tastethedream Aug 7, 2022
47becae
emulator examples added
tastethedream Aug 7, 2022
4f34d26
structure added
tastethedream Aug 7, 2022
5899ac0
structure added
tastethedream Aug 7, 2022
c275fba
wriring data examples added
tastethedream Aug 7, 2022
225db8f
reading data examples added
tastethedream Aug 7, 2022
931fa81
flame package examples added
tastethedream Aug 7, 2022
f0d7b7a
boilerplate example added
tastethedream Aug 7, 2022
cbbe19a
refactoring example added
tastethedream Aug 7, 2022
e307cbb
graphic primitives example added
tastethedream Aug 7, 2022
a50ec59
text rendering example added
tastethedream Aug 7, 2022
a47926f
sound effects example added
tastethedream Aug 7, 2022
217be83
adding keyboard example added
tastethedream Aug 7, 2022
8e73dbc
collision detection example added
tastethedream Aug 7, 2022
309757c
missing code added
tastethedream Aug 7, 2022
45c73a4
structure added
tastethedream Aug 7, 2022
db36693
travel.dart code added
tastethedream Aug 7, 2022
3f05c05
test package example added
tastethedream Aug 7, 2022
3ba76d3
unit test example added
tastethedream Aug 7, 2022
cd5dd93
grouping tests example added
tastethedream Aug 7, 2022
5107f36
mock data example added
tastethedream Aug 7, 2022
0b2b228
widget test example added
tastethedream Aug 7, 2022
a991fc7
widget tests example added
tastethedream Aug 7, 2022
359a36d
integration tests example added
tastethedream Aug 7, 2022
660ffba
device compatability example added
tastethedream Aug 7, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
all #Null code added
  • Loading branch information
tastethedream committed Aug 6, 2022
commit 6ba6a9da105f2e74456a997d57ec72d59dc9b03b
37 changes: 7 additions & 30 deletions ch02/ex2-8.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,15 @@
# 2.8 How to use a Map
# 2.8 Working with Null


## Example

```dart
void main() {
var movieInformation = Map();

// Add element to Map
movieInformation[0] = 'Star Wars';
movieInformation[1] = 'Empire Strikes Back';
movieInformation[2] = 'Return of the Jedi';

// Loop through Map
movieInformation.keys.forEach(
(k) => print('Key: $k, Value: ${movieInformation[k]}')
);

// Show the keys
print('Keys: ${movieInformation.keys}');

// Show the values
print('Values: ${movieInformation.values}');

// Remove element from map
movieInformation.remove(0);

// Loop through Map
movieInformation.keys.forEach(
(k) => print('Key: $k, Value: ${movieInformation[k]}')
);
void main(){
int? ten = null;
print ('ten: $ten');

// Check if a key exists
print('Key 1 exists: ${movieInformation.containsKey(1)}');
print('Value Star Wars exists: ${movieInformation.containsValue('Star Wars')}');
ten = 10;
print ('ten: $ten');
}
```