├── .gitignore ├── .vscode └── launch.json ├── CHANGELOG.md ├── README.md ├── analysis_options.yaml ├── bin ├── Static files │ └── Variables.pptx ├── basics │ └── Random_Tel_Number_generator.dart └── dart_fundamentals.dart ├── lib ├── AddNumbersInArray.dart ├── AddingTwoArrays.dart ├── Fibonacci _Seqeunce.dart ├── FirstPresentation.dart ├── MultiplyNumbersInArray.dart ├── NumberSwapper.dart ├── OOPs │ ├── Car.dart │ └── Garage.dart ├── QuadraticSolver.dart ├── SortNumbersInArray.dart ├── dart_fundamentals.dart ├── part one │ ├── array_operations.dart │ ├── matrix_operations.dart │ └── student_grades.dart └── test.dart ├── pubspec.lock ├── pubspec.yaml └── test └── dart_fundamentals_test.dart /.gitignore: -------------------------------------------------------------------------------- 1 | # https://dart.dev/guides/libraries/private-files 2 | # Created by `dart pub` 3 | .dart_tool/ 4 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | // Use IntelliSense to learn about possible attributes. 3 | // Hover to view descriptions of existing attributes. 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 | "version": "0.2.0", 6 | "configurations": [ 7 | { 8 | "name": "Dart-Programming", 9 | "request": "launch", 10 | "type": "dart" 11 | } 12 | ] 13 | } -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## 1.0.0 2 | 3 | - Initial version. 4 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## follow this link to learn more https://dart-tutorial.com/ 2 | -------------------------------------------------------------------------------- /analysis_options.yaml: -------------------------------------------------------------------------------- 1 | # This file configures the static analysis results for your project (errors, 2 | # warnings, and lints). 3 | # 4 | # This enables the 'recommended' set of lints from `package:lints`. 5 | # This set helps identify many issues that may lead to problems when running 6 | # or consuming Dart code, and enforces writing Dart using a single, idiomatic 7 | # style and format. 8 | # 9 | # If you want a smaller set of lints you can change this to specify 10 | # 'package:lints/core.yaml'. These are just the most critical lints 11 | # (the recommended set includes the core lints). 12 | # The core lints are also what is used by pub.dev for scoring packages. 13 | 14 | include: package:lints/recommended.yaml 15 | 16 | # Uncomment the following section to specify additional rules. 17 | 18 | # linter: 19 | # rules: 20 | # - camel_case_types 21 | 22 | # analyzer: 23 | # exclude: 24 | # - path/to/excluded/files/** 25 | 26 | # For more information about the core and recommended set of lints, see 27 | # https://dart.dev/go/core-lints 28 | 29 | # For additional information about configuring this file, see 30 | # https://dart.dev/guides/language/analysis-options 31 | -------------------------------------------------------------------------------- /bin/Static files/Variables.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ajuatah/Dart-Programming/d0ebf1ddf7731c6312d9558e0c865aeb63595465/bin/Static files/Variables.pptx -------------------------------------------------------------------------------- /bin/basics/Random_Tel_Number_generator.dart: -------------------------------------------------------------------------------- 1 | 2 | void main() { 3 | print('Hello world!'); //printing a string 4 | var age = 20; // declaring a variable of type int 5 | double age1 = 10.3; // creating a variable named age1 of type floating (double) 6 | bool x = false; // creating a variable of type boolean (values can either be true or false) 7 | var y = '50'; //variable of type string 8 | 9 | var name = 'Tiwa'; 10 | var z = num.parse(y); // changing the type from string to integer using num.parse or int.parse 11 | var str = age1.toString(); // changing from double type to string using .toString() 12 | print('my name is '+name); 13 | print(x.runtimeType); // printing the type of x 14 | print(y.runtimeType); 15 | print(z.runtimeType); 16 | } -------------------------------------------------------------------------------- /bin/dart_fundamentals.dart: -------------------------------------------------------------------------------- 1 | import 'package:dart_fundamentals/part%20one/matrix_operations.dart'; 2 | 3 | import '../lib/NumberSwapper.dart'; 4 | import 'dart:math'; 5 | import 'package:dart_fundamentals/OOPs/Car.dart'; 6 | import 'package:dart_fundamentals/OOPs/Garage.dart'; 7 | import 'package:dart_fundamentals/part one/student_grades.dart'; 8 | import 'package:dart_fundamentals/part one/array_operations.dart'; 9 | 10 | void main(List arguments) { 11 | print(" ** ** "); 12 | print(" * * * * "); 13 | print(" * * * "); 14 | print("* *"); 15 | print("* *"); 16 | print(" * * "); 17 | print(" * * "); 18 | print(" * * "); 19 | print(" * * "); 20 | print(" ** "); 21 | 22 | //swapping two number 23 | 24 | int num1 = 5; 25 | int num2 = 10; 26 | 27 | NumberSwapper swapper = NumberSwapper(num1, num2); 28 | 29 | print("Before swapping:"); 30 | print("num1 = ${swapper.a}"); 31 | print("num2 = ${swapper.b}"); 32 | 33 | swapper.swapNumbers(); 34 | 35 | print("\nAfter swapping:"); 36 | print("num1 = ${swapper.a}"); 37 | print("num2 = ${swapper.b}"); 38 | 39 | //quadratic 40 | 41 | double a = 2; 42 | double b = -3; 43 | double c = 1; 44 | 45 | // Calculate the discriminant 46 | double discriminant = b * b - 4 * a * c; 47 | 48 | // Check if the equation has real solutions 49 | if (discriminant >= 0) { 50 | // Calculate the two solutions 51 | double solution1 = (-b + sqrt(discriminant)) / (2 * a); 52 | double solution2 = (-b - sqrt(discriminant)) / (2 * a); 53 | 54 | print("The quadratic equation has real solutions:"); 55 | print("Solution 1: $solution1"); 56 | print("Solution 2: $solution2"); 57 | } else { 58 | print("The quadratic equation has no real solutions."); 59 | } 60 | 61 | // Creating car objects 62 | var car1 = Car('Tesla', 'Red', 2022); 63 | var car2 = Car('Toyota', 'Blue', 2019); 64 | var car3 = Car('BMW', 'Black', 2020); 65 | 66 | // Creating a garage object 67 | var garage = Garage(); 68 | 69 | // Adding cars to the garage 70 | garage.addCar(car1); 71 | garage.addCar(car2); 72 | garage.addCar(car3); 73 | 74 | // Displaying all cars in the garage 75 | garage.displayCars(); 76 | 77 | // illustration of maps 78 | 79 | // Accessing the map from student_grades.dart 80 | print('John\'s grade: ${studentGrades['John']}'); 81 | 82 | // Modifying the map 83 | studentGrades['Bob'] = 89; 84 | print('Bob\'s updated grade: ${studentGrades['Bob']}'); 85 | 86 | // Adding a new entry to the map 87 | studentGrades['Mark'] = 88; 88 | 89 | // Removing an entry from the map 90 | studentGrades.remove('Emily'); 91 | 92 | // Iterating over map entries 93 | print('Student Grades:'); 94 | studentGrades.forEach((key, value) { 95 | print('$key: $value'); 96 | }); 97 | 98 | // Checking if a key exists in the map 99 | bool isAlicePresent = studentGrades.containsKey('Alice'); 100 | print('Is Alice present? $isAlicePresent'); 101 | 102 | // Checking if a value exists in the map 103 | bool isGradePresent = studentGrades.containsValue(95); 104 | print('Is grade 95 present? $isGradePresent'); 105 | 106 | // Getting the number of entries in the map 107 | int numOfEntries = studentGrades.length; 108 | print('Number of entries: $numOfEntries'); 109 | 110 | // Clearing the map 111 | studentGrades.clear(); 112 | print('Cleared map: ${studentGrades.isEmpty}'); 113 | 114 | // working with arrays 115 | // Calling the array operations function 116 | List updatedFruits = performArrayOperations(); 117 | 118 | // Iterating over the updated array 119 | print('Updated Fruits:'); 120 | for (String fruit in updatedFruits) { 121 | print(fruit); 122 | } 123 | 124 | // Calling the matrix operations function 125 | List> updatedMatrix = performMatrixOperations(); 126 | 127 | // Iterating over the updated matrix 128 | print('Updated Matrix:'); 129 | for (List row in updatedMatrix) { 130 | for (int element in row) { 131 | print(element); 132 | } 133 | } 134 | } 135 | -------------------------------------------------------------------------------- /lib/AddNumbersInArray.dart: -------------------------------------------------------------------------------- 1 | void main() { 2 | List numbers = [1, 2, 3, 4, 5]; 3 | int sum = getSum(numbers); 4 | print("The sum of the numbers is: $sum"); 5 | } 6 | 7 | int getSum(List numbers) { 8 | int sum = 0; 9 | for (int i = 0; i < numbers.length; i++) { 10 | sum += numbers[i]; 11 | } 12 | return sum; 13 | } 14 | -------------------------------------------------------------------------------- /lib/AddingTwoArrays.dart: -------------------------------------------------------------------------------- 1 | void main() { 2 | List array1 = [2, 4, 6]; 3 | List array2 = [1, 3, 5]; 4 | List result = []; 5 | 6 | for (int i = 0; i < array1.length; i++) { 7 | result.add(array1[i] + array2[i]); 8 | } 9 | 10 | print("The result of adding the two arrays is: $result"); 11 | } 12 | -------------------------------------------------------------------------------- /lib/Fibonacci _Seqeunce.dart: -------------------------------------------------------------------------------- 1 | <<<<<<< HEAD 2 | void main() {/* 3 | Map age={ 4 | 'john':30, 5 | 'mary':25, 6 | 'Bob':40, 7 | }*/ 8 | var details = {'username':'tom','password':'pass@123'}; 9 | details['uid'] = 'u1oo1'; 10 | print(details); 11 | } 12 | ======= 13 | void main() { 14 | // Prompt the user for the length of the sequence 15 | var n = 10; 16 | 17 | // Initialize the first two terms 18 | var a = 0; 19 | var b = 1; 20 | 21 | // Print the first n terms of the sequence 22 | for (var i = 0; i < n; i++) { 23 | print(a); 24 | var c = a + b; 25 | a = b; 26 | b = c; 27 | } 28 | } 29 | >>>>>>> 20a08c55a2a751e80d958f1705a69891258315b1 30 | -------------------------------------------------------------------------------- /lib/FirstPresentation.dart: -------------------------------------------------------------------------------- 1 | // Syntax 2 | 3 | // Entry point of the program 4 | void main() { 5 | // Data Types 6 | 7 | // Integer data type 8 | int age = 25; 9 | 10 | // Double data type 11 | double height = 1.75; 12 | 13 | // String data type 14 | String name = 'John Doe'; 15 | 16 | // Boolean data type 17 | bool isStudent = true; 18 | 19 | // Lists 20 | List fruits = ['apple', 'banana', 'orange']; 21 | 22 | // Map 23 | Map scores = {'Math': 95, 'English': 85, 'Science': 90}; 24 | 25 | // Symbol 26 | Symbol symbol = #mySymbol; 27 | 28 | // Runes 29 | Runes runes = Runes('\u{1F601}'); 30 | 31 | // Variables 32 | 33 | // 'var' keyword - variable with inferred type 34 | var x = 5; 35 | 36 | // 'dynamic' keyword - dynamically typed variable 37 | dynamic dynamicVariable = 'Dynamic Variable'; 38 | 39 | // Operators 40 | 41 | // Arithmetic operators 42 | int sum = 10 + 5; 43 | double division = 15 / 3; 44 | int modulo = 10 % 3; 45 | 46 | // Logical operators 47 | bool isTrue = true && false; 48 | 49 | // Loops 50 | 51 | // for loop 52 | for (int i = 0; i < 5; i++) { 53 | print('Iteration: $i'); 54 | } 55 | 56 | // while loop 57 | int count = 0; 58 | while (count < 3) { 59 | print('Count: $count'); 60 | count++; 61 | } 62 | 63 | // Decision Making 64 | 65 | // if-else statement 66 | int number = 7; 67 | if (number % 2 == 0) { 68 | print('Even'); 69 | } else { 70 | print('Odd'); 71 | } 72 | 73 | // Numbers 74 | 75 | // Integer 76 | int num = 42; 77 | 78 | // Double 79 | double pi = 3.14159; 80 | 81 | // String 82 | 83 | String message = 'Hello, World!'; 84 | 85 | // Boolean 86 | 87 | bool isTrue1 = true; 88 | 89 | // Lists 90 | 91 | List numbers = [1, 2, 3, 4, 5]; 92 | 93 | // Map 94 | 95 | Map scoreMap = {'Math': 95, 'English': 85, 'Science': 90}; 96 | 97 | // Symbol 98 | 99 | Symbol mySymbol = #mySymbol; 100 | 101 | // Runes 102 | 103 | Runes myRunes = Runes('\u{1F601}'); 104 | } 105 | -------------------------------------------------------------------------------- /lib/MultiplyNumbersInArray.dart: -------------------------------------------------------------------------------- 1 | void main() { 2 | List numbers = [2, 4, 6, 8, 10]; 3 | int product = 1; 4 | 5 | for (int i = 0; i < numbers.length; i++) { 6 | product *= numbers[i]; 7 | } 8 | 9 | print("The product of the elements in the array is $product"); 10 | } 11 | -------------------------------------------------------------------------------- /lib/NumberSwapper.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | void main() {/* 4 | //declaring and initialising variable 5 | int var1=5; 6 | int var2=12; 7 | //changing variable value 8 | var1=10; 9 | var2=20; 10 | //print value 11 | print("First variable:$var1"); 12 | print("Second variable:$var2"); 13 | List myList = new List(4); 14 | myList[0]='welcome'; 15 | myList[1]='to'; 16 | myList[2]='The'; 17 | myList[3]='onepercent'; 18 | 19 | 20 | print(myList[0]); 21 | 22 | print(myList[1]); 23 | 24 | print(myList[2]); 25 | 26 | print(myList[3]); 27 | print(myList);*/ 28 | Map capitals = {"india":"New Delhi","USA":"Washington DC","UK":"London"}; 29 | print("Capital of india:${capitals['india']}"); 30 | print("capital of USA:${capitals['USA']}"); 31 | print("capital of UK:${capitals['UK']}"); 32 | 33 | } 34 | -------------------------------------------------------------------------------- /lib/OOPs/Car.dart: -------------------------------------------------------------------------------- 1 | // Class representing a car 2 | class Car { 3 | String brand; 4 | String color; 5 | int year; 6 | 7 | // Constructor 8 | Car(this.brand, this.color, this.year); 9 | 10 | // Method to display car information 11 | void displayInfo() { 12 | print('Brand: $brand'); 13 | print('Color: $color'); 14 | print('Year: $year'); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /lib/OOPs/Garage.dart: -------------------------------------------------------------------------------- 1 | import 'package:dart_fundamentals/OOPs/Car.dart'; 2 | 3 | // Class representing a garage 4 | class Garage { 5 | List cars; 6 | 7 | // Constructor 8 | Garage() : cars = []; 9 | 10 | // Method to add a car to the garage 11 | void addCar(Car car) { 12 | cars.add(car); 13 | } 14 | 15 | // Method to display all cars in the garage 16 | void displayCars() { 17 | for (var car in cars) { 18 | car.displayInfo(); 19 | print('---'); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /lib/QuadraticSolver.dart: -------------------------------------------------------------------------------- 1 | import 'dart:math'; 2 | import 'dart:io'; 3 | 4 | void main() { 5 | //initializing 6 | int divisor; 7 | double sqroot, solution1, solution2; 8 | int num1 = 4; 9 | int num2 = 10; 10 | int num3 = 6; 11 | //where num1 num2 num3 are values of coeffficient of a quadratic equation 12 | divisor = (2 * num1); 13 | sqroot = sqrt(num2 * num2 - 4 * num1 * num3); 14 | solution1 = (-num2 + sqroot) / divisor; 15 | solution2 = (-num2 - sqroot) / divisor; 16 | print("the quadratic soluion is :"); 17 | print("${solution1}"); 18 | print("${solution2}"); 19 | } 20 | -------------------------------------------------------------------------------- /lib/SortNumbersInArray.dart: -------------------------------------------------------------------------------- 1 | void main() { 2 | List numbers = [5, 2, 9, 1, 5, 6]; 3 | numbers.sort(); 4 | print("The sorted array is: $numbers"); 5 | } 6 | -------------------------------------------------------------------------------- /lib/dart_fundamentals.dart: -------------------------------------------------------------------------------- 1 | int calculate() { 2 | return 6 * 7; 3 | } 4 | -------------------------------------------------------------------------------- /lib/part one/array_operations.dart: -------------------------------------------------------------------------------- 1 | // array_operations.dart 2 | 3 | List performArrayOperations() { 4 | List fruits = ['apple', 'banana', 'orange']; 5 | 6 | // Accessing array elements 7 | print('First fruit: ${fruits[0]}'); // Output: First fruit: apple 8 | 9 | // Modifying array elements 10 | fruits[1] = 'grape'; 11 | print( 12 | 'Modified list: $fruits'); // Output: Modified list: [apple, grape, orange] 13 | 14 | // Adding elements to the end of the array 15 | fruits.add('mango'); 16 | print( 17 | 'List after adding an element: $fruits'); // Output: List after adding an element: [apple, grape, orange, mango] 18 | 19 | // Removing an element from the array 20 | fruits.remove('orange'); 21 | print( 22 | 'List after removing an element: $fruits'); // Output: List after removing an element: [apple, grape, mango] 23 | 24 | // Checking if an element exists in the array 25 | bool isBananaPresent = fruits.contains('banana'); 26 | print( 27 | 'Is banana present? $isBananaPresent'); // Output: Is banana present? false 28 | 29 | // Getting the length of the array 30 | int length = fruits.length; 31 | print('Length of the list: $length'); // Output: Length of the list: 3 32 | 33 | // Sorting the array 34 | fruits.sort(); 35 | print('Sorted list: $fruits'); // Output: Sorted list: [apple, grape, mango] 36 | 37 | // Reversing the array 38 | fruits = fruits.reversed.toList(); 39 | print( 40 | 'Reversed list: $fruits'); // Output: Reversed list: [mango, grape, apple] 41 | 42 | // Returning the updated array 43 | return fruits; 44 | } 45 | -------------------------------------------------------------------------------- /lib/part one/matrix_operations.dart: -------------------------------------------------------------------------------- 1 | // matrix_operations.dart 2 | 3 | List> performMatrixOperations() { 4 | List> matrix = [ 5 | [1, 2, 3], 6 | [4, 5, 6], 7 | [7, 8, 9], 8 | ]; 9 | 10 | // Accessing array elements 11 | int element = matrix[1][2]; 12 | print('Element at row 1, column 2: $element'); 13 | 14 | // Modifying array elements 15 | matrix[0][1] = 10; 16 | print('Modified matrix: $matrix'); 17 | 18 | // Adding a new row to the array 19 | matrix.add([11, 12, 13]); 20 | print('Matrix after adding a row: $matrix'); 21 | 22 | // Removing a row from the array 23 | matrix.removeAt(1); 24 | print('Matrix after removing a row: $matrix'); 25 | 26 | // Returning the updated matrix 27 | return matrix; 28 | } 29 | -------------------------------------------------------------------------------- /lib/part one/student_grades.dart: -------------------------------------------------------------------------------- 1 | // student_grades.dart 2 | 3 | Map studentGrades = { 4 | 'John': 90, 5 | 'Alice': 95, 6 | 'Bob': 87, 7 | 'Emily': 92, 8 | }; 9 | 10 | // Creating a map using the fromIterable() method 11 | List names = ['John', 'Alice', 'Bob', 'Emily']; 12 | Map studentGrades1 = 13 | Map.fromIterable(names, key: (name) => name, value: (_) => 0); 14 | -------------------------------------------------------------------------------- /lib/test.dart: -------------------------------------------------------------------------------- 1 | import 'dart:math'; 2 | import 'dart:io'; 3 | 4 | void main() { 5 | //initializing 6 | int divisor; 7 | double sqroot, solution1, solution2; 8 | int num1 = 4; 9 | int num2 = 10; 10 | int num3 = 6; 11 | //where num1 num2 num3 are values of coeffficient of a quadratic equation 12 | divisor = (2 * num1); 13 | sqroot = sqrt(num2 * num2 - 4 * num1 * num3); 14 | solution1 = (-num2 + sqroot) / divisor; 15 | solution2 = (-num2 - sqroot) / divisor; 16 | print("the quadratic soluion is :"); 17 | print("${solution1}"); 18 | print("${solution2}"); 19 | } 20 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | _fe_analyzer_shared: 5 | dependency: transitive 6 | description: 7 | name: _fe_analyzer_shared 8 | sha256: "405666cd3cf0ee0a48d21ec67e65406aad2c726d9fa58840d3375e7bdcd32a07" 9 | url: "https://pub.dev" 10 | source: hosted 11 | version: "60.0.0" 12 | analyzer: 13 | dependency: transitive 14 | description: 15 | name: analyzer 16 | sha256: "1952250bd005bacb895a01bf1b4dc00e3ba1c526cf47dca54dfe24979c65f5b3" 17 | url: "https://pub.dev" 18 | source: hosted 19 | version: "5.12.0" 20 | args: 21 | dependency: transitive 22 | description: 23 | name: args 24 | sha256: c372bb384f273f0c2a8aaaa226dad84dc27c8519a691b888725dec59518ad53a 25 | url: "https://pub.dev" 26 | source: hosted 27 | version: "2.4.1" 28 | async: 29 | dependency: transitive 30 | description: 31 | name: async 32 | sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" 33 | url: "https://pub.dev" 34 | source: hosted 35 | version: "2.11.0" 36 | boolean_selector: 37 | dependency: transitive 38 | description: 39 | name: boolean_selector 40 | sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" 41 | url: "https://pub.dev" 42 | source: hosted 43 | version: "2.1.1" 44 | collection: 45 | dependency: transitive 46 | description: 47 | name: collection 48 | sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687 49 | url: "https://pub.dev" 50 | source: hosted 51 | version: "1.17.2" 52 | convert: 53 | dependency: transitive 54 | description: 55 | name: convert 56 | sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592" 57 | url: "https://pub.dev" 58 | source: hosted 59 | version: "3.1.1" 60 | coverage: 61 | dependency: transitive 62 | description: 63 | name: coverage 64 | sha256: "2fb815080e44a09b85e0f2ca8a820b15053982b2e714b59267719e8a9ff17097" 65 | url: "https://pub.dev" 66 | source: hosted 67 | version: "1.6.3" 68 | crypto: 69 | dependency: transitive 70 | description: 71 | name: crypto 72 | sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab 73 | url: "https://pub.dev" 74 | source: hosted 75 | version: "3.0.3" 76 | file: 77 | dependency: transitive 78 | description: 79 | name: file 80 | sha256: "1b92bec4fc2a72f59a8e15af5f52cd441e4a7860b49499d69dfa817af20e925d" 81 | url: "https://pub.dev" 82 | source: hosted 83 | version: "6.1.4" 84 | frontend_server_client: 85 | dependency: transitive 86 | description: 87 | name: frontend_server_client 88 | sha256: "408e3ca148b31c20282ad6f37ebfa6f4bdc8fede5b74bc2f08d9d92b55db3612" 89 | url: "https://pub.dev" 90 | source: hosted 91 | version: "3.2.0" 92 | glob: 93 | dependency: transitive 94 | description: 95 | name: glob 96 | sha256: "0e7014b3b7d4dac1ca4d6114f82bf1782ee86745b9b42a92c9289c23d8a0ab63" 97 | url: "https://pub.dev" 98 | source: hosted 99 | version: "2.1.2" 100 | http_multi_server: 101 | dependency: transitive 102 | description: 103 | name: http_multi_server 104 | sha256: "97486f20f9c2f7be8f514851703d0119c3596d14ea63227af6f7a481ef2b2f8b" 105 | url: "https://pub.dev" 106 | source: hosted 107 | version: "3.2.1" 108 | http_parser: 109 | dependency: transitive 110 | description: 111 | name: http_parser 112 | sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" 113 | url: "https://pub.dev" 114 | source: hosted 115 | version: "4.0.2" 116 | io: 117 | dependency: transitive 118 | description: 119 | name: io 120 | sha256: "2ec25704aba361659e10e3e5f5d672068d332fc8ac516421d483a11e5cbd061e" 121 | url: "https://pub.dev" 122 | source: hosted 123 | version: "1.0.4" 124 | js: 125 | dependency: transitive 126 | description: 127 | name: js 128 | sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 129 | url: "https://pub.dev" 130 | source: hosted 131 | version: "0.6.7" 132 | lints: 133 | dependency: "direct dev" 134 | description: 135 | name: lints 136 | sha256: "5e4a9cd06d447758280a8ac2405101e0e2094d2a1dbdd3756aec3fe7775ba593" 137 | url: "https://pub.dev" 138 | source: hosted 139 | version: "2.0.1" 140 | logging: 141 | dependency: transitive 142 | description: 143 | name: logging 144 | sha256: "04094f2eb032cbb06c6f6e8d3607edcfcb0455e2bb6cbc010cb01171dcb64e6d" 145 | url: "https://pub.dev" 146 | source: hosted 147 | version: "1.1.1" 148 | matcher: 149 | dependency: transitive 150 | description: 151 | name: matcher 152 | sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e" 153 | url: "https://pub.dev" 154 | source: hosted 155 | version: "0.12.16" 156 | meta: 157 | dependency: transitive 158 | description: 159 | name: meta 160 | sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3" 161 | url: "https://pub.dev" 162 | source: hosted 163 | version: "1.9.1" 164 | mime: 165 | dependency: transitive 166 | description: 167 | name: mime 168 | sha256: e4ff8e8564c03f255408decd16e7899da1733852a9110a58fe6d1b817684a63e 169 | url: "https://pub.dev" 170 | source: hosted 171 | version: "1.0.4" 172 | node_preamble: 173 | dependency: transitive 174 | description: 175 | name: node_preamble 176 | sha256: "6e7eac89047ab8a8d26cf16127b5ed26de65209847630400f9aefd7cd5c730db" 177 | url: "https://pub.dev" 178 | source: hosted 179 | version: "2.0.2" 180 | package_config: 181 | dependency: transitive 182 | description: 183 | name: package_config 184 | sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd" 185 | url: "https://pub.dev" 186 | source: hosted 187 | version: "2.1.0" 188 | path: 189 | dependency: transitive 190 | description: 191 | name: path 192 | sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917" 193 | url: "https://pub.dev" 194 | source: hosted 195 | version: "1.8.3" 196 | pool: 197 | dependency: transitive 198 | description: 199 | name: pool 200 | sha256: "20fe868b6314b322ea036ba325e6fc0711a22948856475e2c2b6306e8ab39c2a" 201 | url: "https://pub.dev" 202 | source: hosted 203 | version: "1.5.1" 204 | pub_semver: 205 | dependency: transitive 206 | description: 207 | name: pub_semver 208 | sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c" 209 | url: "https://pub.dev" 210 | source: hosted 211 | version: "2.1.4" 212 | shelf: 213 | dependency: transitive 214 | description: 215 | name: shelf 216 | sha256: ad29c505aee705f41a4d8963641f91ac4cee3c8fad5947e033390a7bd8180fa4 217 | url: "https://pub.dev" 218 | source: hosted 219 | version: "1.4.1" 220 | shelf_packages_handler: 221 | dependency: transitive 222 | description: 223 | name: shelf_packages_handler 224 | sha256: "89f967eca29607c933ba9571d838be31d67f53f6e4ee15147d5dc2934fee1b1e" 225 | url: "https://pub.dev" 226 | source: hosted 227 | version: "3.0.2" 228 | shelf_static: 229 | dependency: transitive 230 | description: 231 | name: shelf_static 232 | sha256: a41d3f53c4adf0f57480578c1d61d90342cd617de7fc8077b1304643c2d85c1e 233 | url: "https://pub.dev" 234 | source: hosted 235 | version: "1.1.2" 236 | shelf_web_socket: 237 | dependency: transitive 238 | description: 239 | name: shelf_web_socket 240 | sha256: "9ca081be41c60190ebcb4766b2486a7d50261db7bd0f5d9615f2d653637a84c1" 241 | url: "https://pub.dev" 242 | source: hosted 243 | version: "1.0.4" 244 | source_map_stack_trace: 245 | dependency: transitive 246 | description: 247 | name: source_map_stack_trace 248 | sha256: "84cf769ad83aa6bb61e0aa5a18e53aea683395f196a6f39c4c881fb90ed4f7ae" 249 | url: "https://pub.dev" 250 | source: hosted 251 | version: "2.1.1" 252 | source_maps: 253 | dependency: transitive 254 | description: 255 | name: source_maps 256 | sha256: "708b3f6b97248e5781f493b765c3337db11c5d2c81c3094f10904bfa8004c703" 257 | url: "https://pub.dev" 258 | source: hosted 259 | version: "0.10.12" 260 | source_span: 261 | dependency: transitive 262 | description: 263 | name: source_span 264 | sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" 265 | url: "https://pub.dev" 266 | source: hosted 267 | version: "1.10.0" 268 | stack_trace: 269 | dependency: transitive 270 | description: 271 | name: stack_trace 272 | sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 273 | url: "https://pub.dev" 274 | source: hosted 275 | version: "1.11.0" 276 | stream_channel: 277 | dependency: transitive 278 | description: 279 | name: stream_channel 280 | sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" 281 | url: "https://pub.dev" 282 | source: hosted 283 | version: "2.1.1" 284 | string_scanner: 285 | dependency: transitive 286 | description: 287 | name: string_scanner 288 | sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" 289 | url: "https://pub.dev" 290 | source: hosted 291 | version: "1.2.0" 292 | term_glyph: 293 | dependency: transitive 294 | description: 295 | name: term_glyph 296 | sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 297 | url: "https://pub.dev" 298 | source: hosted 299 | version: "1.2.1" 300 | test: 301 | dependency: "direct dev" 302 | description: 303 | name: test 304 | sha256: "13b41f318e2a5751c3169137103b60c584297353d4b1761b66029bae6411fe46" 305 | url: "https://pub.dev" 306 | source: hosted 307 | version: "1.24.3" 308 | test_api: 309 | dependency: transitive 310 | description: 311 | name: test_api 312 | sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8" 313 | url: "https://pub.dev" 314 | source: hosted 315 | version: "0.6.0" 316 | test_core: 317 | dependency: transitive 318 | description: 319 | name: test_core 320 | sha256: "99806e9e6d95c7b059b7a0fc08f07fc53fabe54a829497f0d9676299f1e8637e" 321 | url: "https://pub.dev" 322 | source: hosted 323 | version: "0.5.3" 324 | typed_data: 325 | dependency: transitive 326 | description: 327 | name: typed_data 328 | sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c 329 | url: "https://pub.dev" 330 | source: hosted 331 | version: "1.3.2" 332 | vm_service: 333 | dependency: transitive 334 | description: 335 | name: vm_service 336 | sha256: f3743ca475e0c9ef71df4ba15eb2d7684eecd5c8ba20a462462e4e8b561b2e11 337 | url: "https://pub.dev" 338 | source: hosted 339 | version: "11.6.0" 340 | watcher: 341 | dependency: transitive 342 | description: 343 | name: watcher 344 | sha256: "6a7f46926b01ce81bfc339da6a7f20afbe7733eff9846f6d6a5466aa4c6667c0" 345 | url: "https://pub.dev" 346 | source: hosted 347 | version: "1.0.2" 348 | web_socket_channel: 349 | dependency: transitive 350 | description: 351 | name: web_socket_channel 352 | sha256: d88238e5eac9a42bb43ca4e721edba3c08c6354d4a53063afaa568516217621b 353 | url: "https://pub.dev" 354 | source: hosted 355 | version: "2.4.0" 356 | webkit_inspection_protocol: 357 | dependency: transitive 358 | description: 359 | name: webkit_inspection_protocol 360 | sha256: "67d3a8b6c79e1987d19d848b0892e582dbb0c66c57cc1fef58a177dd2aa2823d" 361 | url: "https://pub.dev" 362 | source: hosted 363 | version: "1.2.0" 364 | yaml: 365 | dependency: transitive 366 | description: 367 | name: yaml 368 | sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5" 369 | url: "https://pub.dev" 370 | source: hosted 371 | version: "3.1.2" 372 | sdks: 373 | dart: ">=2.19.6 <4.0.0" 374 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: dart_fundamentals 2 | description: A sample command-line application. 3 | version: 1.0.0 4 | # repository: https://github.com/my_org/my_repo 5 | 6 | environment: 7 | sdk: '>=2.19.6 <3.0.0' 8 | 9 | # dependencies: 10 | # path: ^1.8.0 11 | 12 | dev_dependencies: 13 | lints: ^2.0.0 14 | test: ^1.21.0 15 | -------------------------------------------------------------------------------- /test/dart_fundamentals_test.dart: -------------------------------------------------------------------------------- 1 | import 'package:dart_fundamentals/dart_fundamentals.dart'; 2 | import 'package:test/test.dart'; 3 | 4 | void main() { 5 | test('calculate', () { 6 | expect(calculate(), 42); 7 | }); 8 | } 9 | --------------------------------------------------------------------------------