dartstream_client 0.0.1 copy "dartstream_client: ^0.0.1" to clipboard
dartstream_client: ^0.0.1 copied to clipboard

Public Dart client for wiring Flutter, Flame, and server apps to DartStream SaaS.

example/dartstream_client_example.dart

import 'package:dartstream_client/dartstream_client.dart';

void main() {
  final config = DartStreamConfig.dev(
    firebaseApiKey: 'public-firebase-api-key',
  );
  final client = DartStreamClient(config: config);
  print(client.config.authBaseUrl);
}

Future<void> saveGameExample(
  DartStreamClient client,
  DartStreamSession session,
) async {
  const scope = DartStreamScope(projectId: 'my-game');

  await client.experience.saveCloudSave(
    session,
    scope: scope,
    slotKey: 'main',
    payload: {'level': 1},
  );
}
0
likes
150
points
225
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Public Dart client for wiring Flutter, Flame, and server apps to DartStream SaaS.

Homepage

License

MIT (license)

Dependencies

http

More

Packages that depend on dartstream_client