pocketbase_helpers 0.9.1
pocketbase_helpers: ^0.9.1 copied to clipboard
Utilities for using typed data together with pocketbase.
example/lib/example.dart
import 'package:example/models/generated.dart';
import 'package:pocketbase_helpers/pocketbase_helpers.dart';
/// Authenticate John Doe
Future<RecordAuthResult> authenticate() =>
Users.auth().withPassword('johndoe@gmail.com', 'verysecretpassword');
/// Fetch all the users from the pocketbase api
/// since no connection was specified this will default to http://localhost:8090
Future<List<User>> fetch() => Users.api().getFullList();