scanner 1.0.0

  • Installing
  • Versions
  • 41


version 1.0.0 build status

Port of Java's Scanner class to Dart. Works asynchronously.


Printing the contents of a file:

import 'dart:io';
import 'package:scanner/scanner.dart';

main() async {
  var file = new File.fromUri(Platform.script.resolve('../'));
  var scanner = new Scanner(file.openRead());

  while (await scanner.hasNextLine()) {
    print(await scanner.nextLine());

Use this package as a library

1. Depend on it

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

  scanner: "^1.0.0"

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:scanner/scanner.dart';
Version Uploaded Documentation Archive
1.0.0 Mar 15, 2017 Go to the documentation of scanner 1.0.0 Download scanner 1.0.0 archive


We analyzed this package on Jul 13, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.63.0
  • pana: 0.11.3


Describes how popular the package is relative to other packages. [more]
0 / 100
Code health derived from static analysis. [more]
100 / 100
Reflects how tidy and up-to-date the package is. [more]
54 / 100
Overall score:
Weighted score of the above. [more]
Learn more about scoring.


Detected platforms: Flutter, web, other

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


  • Maintain

    Changelog entries help clients to follow the progress in your code.

  • Package is getting outdated.

    The package was released 69 weeks ago.

  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Maintain an example.

    None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use scanner.dart.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.19.0
charcode ^1.1.1 1.1.2
stream_reader ^1.0.0 1.0.2
Dev dependencies
test ^0.12.15