firebase_compute 0.1.2

  • Installing
  • Versions
  • 54


Build Status

Library for doing reactive computations with firebase.


A simple, yet powerful usage example!

Given a Firebase instance containing events in a calendar, the following code will print the next appointment.

import 'package:firebase_compute/firebase_compute.dart';
import 'package:firebase_dart/firebase_dart.dart';
import 'dart:async';

main() async {
  var ref = new Firebase("");

  var data = new DynamicReference(ref); // create a reactive version of a firebase reference

      .child("calendar").child("events")    // reference the subtree at /calendar/events
      .orderByChild("startTime").limitToFirst(1) // order by child startTime and limit to first result
      .startAt(new  // start at the current time
      .firstChild() // move to the first child
      .asStream().forEach((v)=>print("your next appointment is at ${v["startTime"]}: ${v["description"]}"));

    "startTime": new Duration(hours: 4)).toIso8601String(),
    "description": "hairdresser"
  });  // will print "your next appointment is at ... : hairdresser"

  await new Future.delayed(new Duration(seconds: 2));

    "startTime": new Duration(seconds: 10)).toIso8601String(),
    "description": "doctor"
  });  // will print "your next appointment is at ... : doctor"

  // after 10 seconds will print "your next appointment is at ... : hairdresser"


Features and bugs

Please file feature requests and bugs at the issue tracker.



  • Initial version

1. Depend on it

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

  firebase_compute: "^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 packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:firebase_compute/firebase_compute.dart';
Version Uploaded Documentation Archive
0.1.2 Dec 11, 2017 Go to the documentation of firebase_compute 0.1.2 Download firebase_compute 0.1.2 archive
0.1.1 Apr 11, 2017 Go to the documentation of firebase_compute 0.1.1 Download firebase_compute 0.1.1 archive
0.1.0 Mar 7, 2017 Go to the documentation of firebase_compute 0.1.0 Download firebase_compute 0.1.0 archive


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

  • Dart: 2.0.0-dev.46.0
  • pana: 0.10.6


Describes how popular the package is relative to other packages. [more]
14 / 100
Code health derived from static analysis. [more]
90 / 100
Reflects how tidy and up-to-date the package is. [more]
99 / 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:firebase_compute/firebase_compute.dart.


  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 1 error 5 hints.

    Strong-mode analysis of lib/src/reactive.dart failed with the following error:

    line: 215 col: 7
    Missing concrete implementations of 'StreamTransformer.cast' and 'StreamTransformer.retype'.

    Run dartfmt to format lib/firebase_compute.dart.

    Similar analysis of the following files failed:

    • lib/src/query.dart (hint)
    • lib/src/value.dart (hint)
  • 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.

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

  • 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 firebase_compute.dart.

  • Use analysis_options.yaml.

    Rename old .analysis_options file to analysis_options.yaml.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.22.0 <2.0.0
collection ^1.13.0 1.14.9
firebase_dart >=0.7.2 <0.8.0 0.7.3 0.7.8
intl >=0.14.0 <0.15.0 0.14.0 0.15.4
logging ^0.11.3 0.11.3+1
sortedmap ^0.2.0 0.2.0 0.3.0
stream_transformers ^0.3.0 0.3.0+3
Transitive dependencies
async 1.13.3 2.0.6
charcode 1.1.1
convert 2.0.1
crypto 2.0.2+1
frappe 0.4.0+6
isolate 1.0.0 2.0.0
matcher 0.12.1+4
path 1.5.1
quiver 0.22.0 0.29.0+1
stack_trace 1.9.2
stream_channel 1.6.4
typed_data 1.1.5
web_socket_channel 1.0.7
Dev dependencies
test >=0.12.0 <0.13.0