async_resource 0.0.5+1

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • new75

async_resource

Automatically cache network resources and use them when offline. Interface with local resources on any platform.

Experimental

The API is still changing and some parts have not been tested.

[0.0.5] - August 14, 2018

  • Add data getter and parser parameter to NetworkResource.

[0.0.4+1] - August 11, 2018

  • Warn if local resource does not exist 3 seconds after write.

[0.0.4] - August 11, 2018

  • Fix FileResource.lastModified to check for existence first.

[0.0.3] - August 7, 2018

  • Add delete method to local resources.
  • Minor fixes.

[0.0.2] - August 4, 2018

  • Fix library declarations.

[0.0.1] - August 3, 2018

  • First release.

Use this package as a library

1. Depend on it

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


dependencies:
  async_resource: ^0.0.5+1

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:async_resource/async_resource.dart';
  
Version Uploaded Documentation Archive
0.0.5+1 Aug 14, 2018 Go to the documentation of async_resource 0.0.5+1 Download async_resource 0.0.5+1 archive
0.0.5 Aug 14, 2018 Go to the documentation of async_resource 0.0.5 Download async_resource 0.0.5 archive
0.0.4+1 Aug 11, 2018 Go to the documentation of async_resource 0.0.4+1 Download async_resource 0.0.4+1 archive
0.0.4 Aug 11, 2018 Go to the documentation of async_resource 0.0.4 Download async_resource 0.0.4 archive
0.0.3 Aug 8, 2018 Go to the documentation of async_resource 0.0.3 Download async_resource 0.0.3 archive
0.0.2 Aug 5, 2018 Go to the documentation of async_resource 0.0.2 Download async_resource 0.0.2 archive
0.0.1 Aug 3, 2018 Go to the documentation of async_resource 0.0.1 Download async_resource 0.0.1 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
50
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
75
Learn more about scoring.

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

  • Dart: 2.0.0
  • pana: 0.11.8

Platforms

Detected platforms: Flutter, web, other

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

Suggestions

Package is pre-v1 release.

While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction of the API.

Maintain an example.

Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use async_resource.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.19.0 <3.0.0
http ^0.11.3+16 0.11.3+17
meta ^1.1.5 1.1.6
path ^1.6.1 1.6.2
service_worker ^0.2.2 0.2.3
Transitive dependencies
async 2.0.8
charcode 1.1.2
collection 1.14.11
http_parser 3.1.3
js 0.6.1+1
source_span 1.4.1
string_scanner 1.0.4
typed_data 1.1.6
Dev dependencies
mockito ^3.0.0-beta+3
test ^1.3.0