Create Docker Compose File to bind files lol.
docker run -d \ -it \ --name devtest \ --mount type=bind,source="$(pwd)"/target,target=/dart \ google/dart
docker run -d -it --name devtest --mount type=bind,source="$(pwd)"/target,target=/dart google/dart
docker ps -a to find all the active docker images.
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies: dli_dart_algorithms: ^0.1.0
2. Install it
You can install packages from the command line:
$ pub get
Alternatively, your editor might support
Check the docs for your editor to learn more.
3. Import it
Now in your Dart code, you can use:
import 'package:dli_dart_algorithms/main.dart'; import 'package:dli_dart_algorithms/strings/CheckIfStringContainsDigits/main.dart'; import 'package:dli_dart_algorithms/strings/CheckIfStringContainsDigits/strings.dart'; import 'package:dli_dart_algorithms/strings/CountDuplicateCharacters/main.dart'; import 'package:dli_dart_algorithms/strings/CountDuplicateCharacters/strings.dart'; import 'package:dli_dart_algorithms/strings/CountingVowelsAndCons/main.dart'; import 'package:dli_dart_algorithms/strings/CountingVowelsAndCons/strings.dart'; import 'package:dli_dart_algorithms/strings/FirstNonRepeatedCharacter/main.dart'; import 'package:dli_dart_algorithms/strings/FirstNonRepeatedCharacter/strings.dart'; import 'package:dli_dart_algorithms/strings/PrintPermutations/main.dart'; import 'package:dli_dart_algorithms/strings/PrintPermutations/strings.dart'; import 'package:dli_dart_algorithms/strings/strings.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Apr 8, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
- Dart: 2.7.1
- pana: 0.13.6
Analysis issues and suggestions
dartfmt successfully runs on your package's source files.
dartfmt -n . failed with the following output:
Exception: dartfmt on lib/ failed with exit code 65 Could not format because the source could not be parsed: line 1, column 8 of lib/main.dart: Expected to find ';'. ╷ 1 │ export 'strings/strings.dart' │ ^^^^^^^^^^^^^^^^^^^^^^ ╵
Health issues and suggestions
lib/strings/PrintPermutations/strings.dart. (-92.53 points)
lib/strings/PrintPermutations/strings.dart failed with 9 errors, 1 hint, including:
line 8 col 36: The method 'charAt' isn't defined for the class 'String'.
line 15 col 3: Undefined name 'permutations'.
line 19 col 5: Undefined name 'permutations'.
line 19 col 22: Undefined name 'prefix'.
line 22 col 7: Undefined name 'permutations'.
lib/main.dart. (-25 points)
lib/main.dart failed with 1 error:
line 1 col 8: Expected to find ';'.
lib/strings/CheckIfStringContainsDigits/main.dart. (-25 points)
lib/strings/CheckIfStringContainsDigits/main.dart failed with 1 error:
line 4 col 27: A value of type 'num' can't be assigned to a variable of type 'Map<String, int>'.
Document public APIs. (-1 points)
12 out of 12 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.
Fix additional 7 files with analysis or formatting issues. (-6.96 points)
Additional issues in the following files:
Maintenance issues and suggestions
No valid SDK. (-20 points)
The analysis could not detect a valid SDK that can use this package.
Provide a file named
CHANGELOG.md. (-20 points)
Changelog entries help developers follow the progress of your package. See the example generated by
The package description is too short. (-20 points)
Add more detail to the
description field of
pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.
Maintain an example. (-10 points)
Create a short demo in the
example/ directory to show how to use this package.
Common filename patterns include
dli_dart_algorithms.dart. Packages with multiple examples should provide
For more information see the pub package layout conventions.
|Dart SDK||>=2.2.0 <3.0.0|