stat 0.0.7

name: stat description: Convert the year and the Japanese calendar mutually.
version: 0.0.1
author: Daisuke Tanaka


import 'package:stat/stat.dart';

void main() {
  var stat = new Stat();
  var list = [1, 2, 3, 4, 5];

  // 合計の計算
  num sum_value = stat.sum(list);
  print(sum_value); // 15

  num max_value = stat.max(list);
  print(max_value); // 5

  num min_value = stat.min(list);
  print(min_value); // 1
  num mean_value = stat.mean(list); 
  print(mean_value); // 3.0;

  num median_value = stat.median(list); 
  print(median_value); // 4

Use this package as a library

1. Depend on it

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

  stat: ^0.0.7

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.

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 Jul 11, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.4
  • pana: 0.13.15

Health suggestions

Fix lib/src/stat.dart. (-1 points)

Analysis of lib/src/stat.dart reported 2 hints:

line 1 col 8: Unused import: 'dart:math'.

line 4 col 10: Use ; instead of {} for empty constructor bodies.

Fix lib/src/main.dart. (-0.50 points)

Analysis of lib/src/main.dart reported 1 hint:

line 4 col 14: Unnecessary new keyword.

Maintenance issues and suggestions

Make sure dartdoc successfully runs on your package's source files. (-10 points)

exitCode: 255 stdout: Documenting stat... Initialized dartdoc with 37 libraries in 29.2 seconds Validating docs... no issues found Documented 0 public libraries in 5.5 seconds stderr: Unhandled exception: dartdoc could not find any libraries to document #0 Dartdoc.generateDocs (package:dartdoc/dartdoc.dart:218:9)

Provide a file named (-20 points)

Changelog entries help developers follow the progress of your package. See the example generated by stagehand.

Homepage URL doesn't exist. (-20 points)

At the time of the analysis the homepage field was unreachable.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0