tesla 0.0.2

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 42

Tesla for Dart Build Status

Control and monitor Tesla Products in Dart

Tesla.dart Changelog #

v0.0.1 #

  • Initial Version: No documentation.

v0.0.2 #

  • Abstract API and cleanup.
  • Option code support.
  • Support for software updates.
  • Multi-platform support.

Use this package as a library

1. Depend on it

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


dependencies:
  tesla: ^0.0.2

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:tesla/tesla.dart';
  
Version Uploaded Documentation Archive
0.0.3+1 Jan 20, 2019 Go to the documentation of tesla 0.0.3+1 Download tesla 0.0.3+1 archive
0.0.3 Jan 20, 2019 Go to the documentation of tesla 0.0.3 Download tesla 0.0.3 archive
0.0.2 Jan 13, 2019 Go to the documentation of tesla 0.0.2 Download tesla 0.0.2 archive
0.0.1 Jan 8, 2019 Go to the documentation of tesla 0.0.1 Download tesla 0.0.1 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
94
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
70
Overall:
Weighted score of the above. [more]
42
Learn more about scoring.

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

  • Dart: 2.1.0
  • pana: 0.12.13

Platforms

Detected platforms: Flutter, web, other

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

Health issues and suggestions

Document public APIs. (-1 points)

623 out of 623 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 lib/src/types/vehicle.dart. (-2.96 points)

Analysis of lib/src/types/vehicle.dart reported 6 hints, including:

line 59 col 35: Use = to separate a named parameter from its default value.

line 128 col 36: Use = to separate a named parameter from its default value.

line 182 col 36: Use = to separate a named parameter from its default value.

line 182 col 54: Use = to separate a named parameter from its default value.

line 210 col 40: Use = to separate a named parameter from its default value.

Fix lib/src/impl/io.dart. (-1 points)

Analysis of lib/src/impl/io.dart reported 2 hints:

line 83 col 23: Use = to separate a named parameter from its default value.

line 106 col 23: Use = to separate a named parameter from its default value.

Fix bin/report.dart. (-0.50 points)

Analysis of bin/report.dart reported 1 hint:

line 44 col 5: Future results in async function bodies must be awaited or marked unawaited using package:pedantic.

Fix bin/status.dart. (-0.50 points)

Analysis of bin/status.dart reported 1 hint:

line 19 col 3: Future results in async function bodies must be awaited or marked unawaited using package:pedantic.

Fix bin/swupdate.dart. (-0.50 points)

Analysis of bin/swupdate.dart reported 1 hint:

line 12 col 3: Future results in async function bodies must be awaited or marked unawaited using package:pedantic.

Maintenance suggestions

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.

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.

Maintain an example.

None of the files in the package's example/ directory matches known example patterns.

Common filename patterns include main.dart, example.dart, and tesla.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

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