hex 0.1.2

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 91

dart-hex #

Easy hexadecimal encoding and decoding using the dart:convert API.

Usage #

A simple usage example:

import "package:hex/hex.dart";

void main() {
  HEX.encode(const [1, 2, 3]); // "010203"
  HEX.decode("010203"); // [1, 2, 3]
}

Changelog #

0.1.2 (2018-08-13) #

  • use const constructor for decoder
  • support Dart v2
  • change license to MIT

0.1.1 (2017-01-27) #

  • throws FormatException on invalid input

0.1.0 (2017-01-27) #

  • initial version

Use this package as a library

1. Depend on it

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


dependencies:
  hex: ^0.1.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:hex/hex.dart';
  
Version Uploaded Documentation Archive
0.1.2 Aug 13, 2018 Go to the documentation of hex 0.1.2 Download hex 0.1.2 archive
0.1.1 Jan 27, 2017 Go to the documentation of hex 0.1.1 Download hex 0.1.1 archive
0.1.0+1 Jan 27, 2017 Go to the documentation of hex 0.1.0+1 Download hex 0.1.0+1 archive
0.1.0 Jan 27, 2017 Go to the documentation of hex 0.1.0 Download hex 0.1.0 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
89
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
81
Overall:
Weighted score of the above. [more]
91
Learn more about scoring.

We analyzed this package on May 9, 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, web, other

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

Health suggestions

Fix lib/hex.dart. (-0.50 points)

Analysis of lib/hex.dart reported 1 hint:

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

Maintenance suggestions

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 hex.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

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

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.0.0 <3.0.0
Dev dependencies
test >=0.12.0 <0.13.0