A representation of a complex number, i.e. a number which has both a real and an imaginary part.
- Compatible with Dart 2
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies: complex: ^0.5.0
2. Install it
You can install packages from the command line:
$ pub get
$ flutter pub get
Alternatively, your editor might support
pub get or
flutter pub get.
Check the docs for your editor to learn more.
3. Import it
Now in your Dart code, you can use:
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 Jul 7, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
- Dart: 2.8.4
- pana: 0.13.13
lib/src/tables.dart. (-2.96 points)
lib/src/tables.dart reported 6 hints, including:
line 7 col 22: Avoid const keyword.
line 25 col 22: Avoid const keyword.
line 43 col 24: Avoid const keyword.
line 61 col 24: Avoid const keyword.
line 79 col 25: Avoid const keyword.
lib/src/complex.dart. (-2.48 points)
lib/src/complex.dart reported 5 hints:
line 39 col 20: Avoid const keyword.
line 42 col 22: Avoid const keyword.
line 45 col 27: Avoid const keyword.
line 48 col 22: Avoid const keyword.
line 51 col 23: Avoid const keyword.
lib/src/literals.dart. (-1.99 points)
lib/src/literals.dart reported 4 hints:
line 8 col 25: Avoid const keyword.
line 1513 col 25: Avoid const keyword.
line 3019 col 26: Avoid const keyword.
line 4049 col 26: Avoid const keyword.
lib/src/fastmath.dart. (-1 points)
lib/src/fastmath.dart reported 2 hints:
line 34 col 17: Avoid const keyword.
line 123 col 43: Don't explicitly initialize variables to null.
Maintain an example. (-10 points)
Create a short demo in the
example/ directory to show how to use this package.
Common filename patterns include
complex.dart. Packages with multiple examples should provide
For more information see the pub package layout conventions.
Package is getting outdated. (-8.49 points)
The package was last published 56 weeks ago.
|Dart SDK||>=2.0.0 <3.0.0|