dart_finance 1.0.0

  • Readme
  • Changelog
  • Example
  • Installing
  • 47

A library for Dart developers who need access to finance and accounting formulas.

Created from templates made available by Stagehand under a BSD-style license.

Usage #

A simple usage example:

import 'package:dart_finance/dart_finance.dart' as finance;

main() {  
  print(finance.internal_rate_of_return([0, 0, 0, 0, 110000.0], 100000.0, 0)) // 1.9245

Features and bugs #

Please file feature requests and bugs at the issue tracker.

Documentation #

Download, cd into the directory, then run dartdoc, then goto doc/api and view the full documentation

1.0.0 #

  • Initial version, created by Stagehand


import 'package:dart_finance/dart_finance.dart' as finance;

main() {
  finance.internal_rate_of_return([0, 0, 0, 0, 110000.0], 100000.0, 0) == 1.9245;

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  dart_finance: ^1.0.0

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ 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:

import 'package:dart_finance/dart_finance.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]
Learn more about scoring.

We analyzed this package on Oct 11, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.1
  • pana: 0.12.21


Detected platforms: Flutter, web, other

No platform restriction found in primary library package:dart_finance/dart_finance.dart.

Health suggestions

Format lib/dart_finance.dart.

Run dartfmt to format lib/dart_finance.dart.

Maintenance suggestions

The package description is too short. (-8 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.

Package is getting outdated. (-5.21 points)

The package was last published 54 weeks ago.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
Dev dependencies
test ^1.0.0