Adds a `readme_examples.dart` file under `example/lib` for the `in_app_purchase` package and switches the package README to use `<?code-excerpt?>`-generated snippets sourced from it, instead of hand-maintained inline code blocks. This keeps the README examples compiling and in sync with the current package API, and removes `in_app_purchase`'s exemption from `code-excerpt` adoption.
Also fixes several runtime-safety issues in those new excerpts that were flagged in review (missing `Platform.isIOS`/`Platform.isMacOS` guards around StoreKit-only APIs, and unsafe null/index access when reading Android subscription offers and StoreKit 2 transactions), and bumps the package version with a CHANGELOG entry for the change.
Addresses the `in_app_purchase/in_app_purchase` item of flutter/flutter#102679 (that issue tracks many packages, so it should stay open after this merges).
## Pre-Review Checklist
Test plan
**Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.
[^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.