tesla 0.0.1

  • README.md
  • Installing
  • Versions
  • 52

Tesla #

Control Tesla Vehicles in Dart

Use this package as a library

1. Depend on it

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


dependencies:
  tesla: ^0.0.1

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:tesla/tesla.dart';
  
Version Uploaded Documentation Archive
0.1.1 Apr 4, 2019 Go to the documentation of tesla 0.1.1 Download tesla 0.1.1 archive
0.1.0 Mar 24, 2019 Go to the documentation of tesla 0.1.0 Download tesla 0.1.0 archive
0.0.4 Feb 23, 2019 Go to the documentation of tesla 0.0.4 Download tesla 0.0.4 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]
32
Health:
Code health derived from static analysis. [more]
92
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
40
Overall:
Weighted score of the above. [more]
52
Learn more about scoring.

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

  • Dart: 2.3.0
  • pana: 0.12.15

Platforms

Detected platforms: Flutter, other

Primary library: package:tesla/tesla.dart with components: io.

Health issues and suggestions

Document public APIs. (-1 points)

373 out of 373 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/client.dart. (-2.96 points)

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

line 49 col 65: Use = to separate a named parameter from its default value.

line 49 col 73: Don't explicitly initialize variables to null.

line 49 col 87: Use = to separate a named parameter from its default value.

line 71 col 94: Use = to separate a named parameter from its default value.

line 71 col 102: Don't explicitly initialize variables to null.

Fix lib/src/vehicle.dart. (-2.48 points)

Analysis of lib/src/vehicle.dart reported 5 hints:

line 52 col 92: Use = to separate a named parameter from its default value.

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

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

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

line 208 col 40: 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 additional 6 files with analysis or formatting issues. (-1 points)

Additional issues in the following files:

  • bin/status.dart (1 hint)
  • bin/stream.dart (1 hint)
  • lib/src/heater.dart (Run dartfmt to format lib/src/heater.dart.)
  • lib/src/streaming.dart (Run dartfmt to format lib/src/streaming.dart.)
  • lib/src/summon.dart (Run dartfmt to format lib/src/summon.dart.)
  • lib/tesla.dart (Run dartfmt to format lib/tesla.dart.)

Maintenance issues and suggestions

Provide a file named CHANGELOG.md. (-20 points)

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

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 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.

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.

Dependencies

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