Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 3 additions & 0 deletions animals-oop/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://dart.dev/guides/libraries/private-files
# Created by `dart pub`
.dart_tool/
3 changes: 3 additions & 0 deletions animals-oop/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 1.0.0

- Initial version.
2 changes: 2 additions & 0 deletions animals-oop/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
A sample command-line application with an entrypoint in `bin/`, library code
in `lib/`, and example unit test in `test/`.
30 changes: 30 additions & 0 deletions animals-oop/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This file configures the static analysis results for your project (errors,
# warnings, and lints).
#
# This enables the 'recommended' set of lints from `package:lints`.
# This set helps identify many issues that may lead to problems when running
# or consuming Dart code, and enforces writing Dart using a single, idiomatic
# style and format.
#
# If you want a smaller set of lints you can change this to specify
# 'package:lints/core.yaml'. These are just the most critical lints
# (the recommended set includes the core lints).
# The core lints are also what is used by pub.dev for scoring packages.

include: package:lints/recommended.yaml

# Uncomment the following section to specify additional rules.

# linter:
# rules:
# - camel_case_types

# analyzer:
# exclude:
# - path/to/excluded/files/**

# For more information about the core and recommended set of lints, see
# https://dart.dev/go/core-lints

# For additional information about configuring this file, see
# https://dart.dev/guides/language/analysis-options
3 changes: 3 additions & 0 deletions animals-oop/bin/animals_oop.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
void main() {
print("Hello oop !");
}
42 changes: 42 additions & 0 deletions animals-oop/lib/animal_model.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@






class animalModel{


String name;
int limp;
double price;
String food;


animalModel({required this.name , required this.limp , required this.price , required this.food });



getName(){
print("\n\n######## animal name ------> $name ########");
}

getLimp(){
print("\n\n######## animal limp ------> $limp ########");
}


getPricee(){
print("\n\n######## animal price ------> $price ########" );
}


getFood(){
print("\n\n######## animal food ------> $food ########");
}





}
1 change: 1 addition & 0 deletions animals-oop/lib/f.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello
Loading