pocketbase_plus 0.0.4
pocketbase_plus: ^0.0.4 copied to clipboard
Pocketbase Plus is a Dart package that automates model generation for your PocketBase projects. Quick setup, less boilerplate, more time to build awesome apps!
import 'package:example/models/matches.dart';
import 'package:pocketbase/pocketbase.dart';
Future<void> main(List<String> arguments) async {
final pb = PocketBase('http://exmaple.com');
final data = await pb.collection('match_requests').getFullList();
final matches = data.map((e) => MatchesModel.fromModel(e));
print(matches.first.id);
print(matches.first.created);
}