diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..26d3352
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,3 @@
+# Default ignored files
+/shelf/
+/workspace.xml
diff --git a/.idea/dart-pass.iml b/.idea/dart-pass.iml
new file mode 100644
index 0000000..318c43d
--- /dev/null
+++ b/.idea/dart-pass.iml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Dart_Packages.xml b/.idea/libraries/Dart_Packages.xml
new file mode 100644
index 0000000..fb723f6
--- /dev/null
+++ b/.idea/libraries/Dart_Packages.xml
@@ -0,0 +1,404 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Dart_SDK.xml b/.idea/libraries/Dart_SDK.xml
new file mode 100644
index 0000000..3836b7d
--- /dev/null
+++ b/.idea/libraries/Dart_SDK.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..e208459
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..980fa76
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/bin/dart_application_1.dart b/bin/dart_application_1.dart
index 2404519..ff5c73d 100644
--- a/bin/dart_application_1.dart
+++ b/bin/dart_application_1.dart
@@ -17,6 +17,13 @@ class View {
}
}
+
+class Text extends View{
+ final String content;
+
+ Text(int id, this.content,{Color? color}):super(id,color: color);
+}
+
void main() {
/*
1) Create class named `Text` that extends/inherits `View` class,
@@ -27,9 +34,12 @@ void main() {
var helloText = Text(, content: 'Hello' )
*/
- int id = Random().nextInt(10000);
+
+ int id = Random().nextInt(10000);
+ Text helloText = Text(id,'Hello');
print('hello: $helloText');
+ task2();
}
void task2() {
@@ -39,5 +49,7 @@ void task2() {
Separate even numbers from the above `numbers` list.
List evenNumbers = ...
*/
+ //List evenNumbers = numbers.where((element) => element % 2 == 0).toList();
+ List evenNumbers = numbers.where((element) => element.isEven).toList();
print('evenNumbers: $evenNumbers');
}