realtime_data_model 0.0.5
realtime_data_model: ^0.0.5 copied to clipboard
Use Google Drive Realtime API with drive documents and locally with the same interface. Based on the google_drive_realtime package.
Dart Realtime Data Model #
###based on Dart Google Drive Realtime
This project is a library that constrains the Dart Google Drive Realtime API and provides a local implementation so that applications can write to a single API whether the backing data is a Google Document or a local object. It is based on Dart Google Drive Realtime. It uses JS Interop library and its scoped approch to prevent memory leaks. You can have a look at Js Interop documentation for more informations.
Usage #
To use this library in your code :
- add a dependency in your
pubspec.yaml:
dependencies:
realtime_data_model: "0.0.0"
- add import in your
dartcode :
import 'package:realtime_data_model/realtime_data_model.dart';
- Follow the steps described at Create a Realtime Application or begin using the library locally with:
start(realtimeOptions, local: true)
The library is currently unstable and does not support custom objects or databinding.
License #
Apache 2.0