flutter_parse 1.0.1 copy "flutter_parse: ^1.0.1" to clipboard
flutter_parse: ^1.0.1 copied to clipboard

Plugin for managing and accessing Parse Server for Dart VM and Flutter.

example/flutter_parse_example.dart

import 'package:flutter_parse/flutter_parse.dart';
import 'package:flutter_parse_storage_interface/flutter_parse_storage_interface.dart';

main() async {
  // initialize storage interface using in memory parse storage (default)
  ParseStorageInterface.instance = InMemoryParseStorage.empty();

  // create configuration
  ParseConfiguration config = ParseConfiguration(
    server: 'YOUR_PARSE_SERVER_URL',
    applicationId: 'YOUR_PARSE_APPLICATION_ID',
    clientKey: 'YOUR_PARSE_CLIENT_KEY',
    masterKey: 'YOUR_PARSE_MASTER_KEY',
  );
  // initialize parse using configuration
  Parse.initialize(config);

  // create and save object
  final object = ParseObject(className: 'Beacon')
    ..set('proximityUUID', 'CB10023F-A318-3394-4199-A8730C7C1AEC')
    ..set('major', 1)
    ..set('enabled', true)
    ..set('timestamp', DateTime.now());
  await object.save();

  // query for objects
  final query = ParseQuery(className: 'Beacon')
    ..whereEqualTo('proximityUUID', 'CB10023F-A318-3394-4199-A8730C7C1AEC')
    ..whereLessThanOrEqualTo('major', 10);
  final beacons = await query.find();
  print(beacons.length);
}
15
likes
110
pub points
69%
popularity

Publisher

verified publishermesosfer.com

Plugin for managing and accessing Parse Server for Dart VM and Flutter.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter_parse_storage_interface, http, meta, web_socket_channel

More

Packages that depend on flutter_parse