dart-fix-runtime-errors
Resolve Dart Runtime Errors Safely
Dart type and null-safety errors can delay development and cause runtime failures. This skill provides a structured workflow to analyze, fix, and verify local Dart code changes.
Install with my Agent
Copy this request to your Agent. It includes the canonical Skill page and manifest.
Review the Skillstore skill "dart-fix-runtime-errors" from https://skillstore.io/skills/flutter-dart-fix-runtime-errors.md and its manifest at https://skillstore.io/api/skills/flutter-dart-fix-runtime-errors/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.Your Agent should still show its plan and request any confirmation required by the security policy.
Agent-readable resources
Use these links when an AI agent, crawler, or script needs clean context instead of reading the full page.
Test it
Using "dart-fix-runtime-errors". A List<dynamic> cannot be passed to a method expecting List<int>.
Expected outcome:
- Identify the inferred dynamic collection.
- Create the collection with an explicit int type.
- Run Dart analysis and tests to verify the change.
Using "dart-fix-runtime-errors". A non-nullable instance field is not initialized.
Expected outcome:
- Check whether the field can be nullable.
- Use a constructor initializer when possible.
- Use late only when initialization before every read is guaranteed.
Security Audit
SafeAll 50 static findings are false positives. The analyzer misread Markdown code delimiters, fixed Dart commands, and Dart examples as shell execution or system reconnaissance. The skill contains a local workflow for Dart analysis and testing, with no prompt injection, data collection, network activity, or command construction from user input.
Risk Factors
⚙️ External commands (35)
Share & cite this report
Share the versioned assessment report, neutral badge, embed card, and citations. Skillstore reports evidence without deciding whether this Skill is safe.
Copy report link
https://skillstore.io/skills/flutter-dart-fix-runtime-errors/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown badge
[](https://skillstore.io/skills/flutter-dart-fix-runtime-errors?utm_source=security_passport_badge)HTML badge
<a href="https://skillstore.io/skills/flutter-dart-fix-runtime-errors?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/flutter-dart-fix-runtime-errors/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Embed card
<iframe src="https://skillstore.io/embed/skills/flutter-dart-fix-runtime-errors.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Academic citations (APA · BibTeX · CFF)
APA citation
flutter. (2026). dart-fix-runtime-errors security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/flutter-dart-fix-runtime-errors/audits/1BibTeX citation
@techreport{flutter-flutter-dart-fix-runtime-errors-2026,
author = {flutter},
title = {dart-fix-runtime-errors security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/flutter-dart-fix-runtime-errors/audits/1},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "dart-fix-runtime-errors security audit report (audit version 1)"
version: "unspecified"
type: report
authors:
- name: "flutter"
date-released: "2026-08-30"
url: "https://skillstore.io/skills/flutter-dart-fix-runtime-errors/audits/1"
identifiers:
- type: other
value: "skillstore:flutter-dart-fix-runtime-errors:audit:1"
description: "Skillstore immutable audit report identifier"
Skillstore Score
Why this score Evidence Confidence: MediumWhat You Can Build
Fix a null-safety error
Identify nullable values and select a safe initialization, optional access, or fallback strategy.
Resolve collection type errors
Add explicit generic types when analyzer output reports incompatible dynamic collections.
Verify a team code change
Run analysis and tests after a fix before submitting a pull request.
Try These Prompts
Run Dart static analysis for this project. Explain the first errors and propose minimal fixes.
Help me resolve this Dart null-safety error. Explain whether optional access, a fallback, or initialization is appropriate.
Investigate this Dart type mismatch. Trace the inferred types and propose an explicit, safe type annotation.
Review my Dart error fix. Run static analysis and tests, summarize results, and identify any remaining failures.
Best Practices
- Run dart fix with dry-run before applying changes.
- Prefer explicit types and constructor initialization over unsafe casts or late fields.
- Run dart analyze and dart test after every fix.
Avoid
- Do not apply automated fixes without reviewing the proposed changes.
- Do not use a null assertion when a value can be absent.
- Do not silence analyzer errors with broad casts that hide invalid runtime types.