firedart_2 1.0.0 firedart_2: ^1.0.0 copied to clipboard
A dart-native implementation of the Firebase Auth and Firestore SDKs.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add firedart_2
With Flutter:
$ flutter pub add firedart_2
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
firedart_2: ^1.0.0
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:firedart_2/auth/auth_gateway.dart';
import 'package:firedart_2/auth/client.dart';
import 'package:firedart_2/auth/exceptions.dart';
import 'package:firedart_2/auth/user_gateway.dart';
import 'package:firedart_2/firedart.dart';
import 'package:firedart_2/firestore/firestore.dart';
import 'package:firedart_2/firestore/firestore_gateway.dart';
import 'package:firedart_2/firestore/models.dart';
import 'package:firedart_2/firestore/type_util.dart';
import 'package:firedart_2/generated/google/firestore/v1/common.pb.dart';
import 'package:firedart_2/generated/google/firestore/v1/common.pbenum.dart';
import 'package:firedart_2/generated/google/firestore/v1/common.pbjson.dart';
import 'package:firedart_2/generated/google/firestore/v1/document.pb.dart';
import 'package:firedart_2/generated/google/firestore/v1/document.pbenum.dart';
import 'package:firedart_2/generated/google/firestore/v1/document.pbjson.dart';
import 'package:firedart_2/generated/google/firestore/v1/firestore.pb.dart';
import 'package:firedart_2/generated/google/firestore/v1/firestore.pbenum.dart';
import 'package:firedart_2/generated/google/firestore/v1/firestore.pbgrpc.dart';
import 'package:firedart_2/generated/google/firestore/v1/firestore.pbjson.dart';
import 'package:firedart_2/generated/google/firestore/v1/query.pb.dart';
import 'package:firedart_2/generated/google/firestore/v1/query.pbenum.dart';
import 'package:firedart_2/generated/google/firestore/v1/query.pbjson.dart';
import 'package:firedart_2/generated/google/firestore/v1/write.pb.dart';
import 'package:firedart_2/generated/google/firestore/v1/write.pbenum.dart';
import 'package:firedart_2/generated/google/firestore/v1/write.pbjson.dart';
import 'package:firedart_2/generated/google/protobuf/any.pb.dart';
import 'package:firedart_2/generated/google/protobuf/any.pbenum.dart';
import 'package:firedart_2/generated/google/protobuf/any.pbjson.dart';
import 'package:firedart_2/generated/google/protobuf/empty.pb.dart';
import 'package:firedart_2/generated/google/protobuf/empty.pbenum.dart';
import 'package:firedart_2/generated/google/protobuf/empty.pbjson.dart';
import 'package:firedart_2/generated/google/protobuf/struct.pb.dart';
import 'package:firedart_2/generated/google/protobuf/struct.pbenum.dart';
import 'package:firedart_2/generated/google/protobuf/struct.pbjson.dart';
import 'package:firedart_2/generated/google/protobuf/timestamp.pb.dart';
import 'package:firedart_2/generated/google/protobuf/timestamp.pbenum.dart';
import 'package:firedart_2/generated/google/protobuf/timestamp.pbjson.dart';
import 'package:firedart_2/generated/google/protobuf/wrappers.pb.dart';
import 'package:firedart_2/generated/google/protobuf/wrappers.pbenum.dart';
import 'package:firedart_2/generated/google/protobuf/wrappers.pbjson.dart';
import 'package:firedart_2/generated/google/rpc/status.pb.dart';
import 'package:firedart_2/generated/google/rpc/status.pbenum.dart';
import 'package:firedart_2/generated/google/rpc/status.pbjson.dart';
import 'package:firedart_2/generated/google/type/latlng.pb.dart';
import 'package:firedart_2/generated/google/type/latlng.pbenum.dart';
import 'package:firedart_2/generated/google/type/latlng.pbjson.dart';