-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path004_comments.dart
More file actions
38 lines (33 loc) · 775 Bytes
/
004_comments.dart
File metadata and controls
38 lines (33 loc) · 775 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/// Documentation comments
///
/// This is a sample comment
///
///
void main() {
// This is a comment line
/*
* This is a multi line comment block
*/
print('Welcome to my Llama farm!');
}
/// A domesticated South American camelid (Lama glama).
///
/// Andean cultures have used llamas as meat and pack
/// animals since pre-Hispanic times.
///
/// Just like any other animal, llamas need to eat,
/// so don't forget to [feed] them some [Food].
class Llama {
String? name;
/// Feeds your llama [food].
///
/// The typical llama eats one bale of hay per week.
void feed(int? feed_number) {
// ...
}
/// Exercises your llama with an [activity] for
/// [timeLimit] minutes.
void exercise(String activity, int timeLimit) {
// ...
}
}