```dart
// Do not forget to import the following with the other imports at the top of the file
import 'package:amplify_datastore_plugin_interface/amplify_datastore_plugin_interface.dart';

Future<void> fetchPostsWithPagination(int page) async {
  final posts = await Amplify.DataStore.query(
    Post.classType,
    pagination: QueryPagination(page: page, limit: 25),
  );
  print('Posts: $posts');
}
```
