Focused Agent Skills for complete Flutter and Dart app delivery.
72
90%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Low
Low-risk findings worth noting
Sealed classes enable algebraic data types (ADTs) and exhaustive pattern matching in Dart. Use sealed hierarchies to model closed sets of subtypes, such as UI states, API results, or command messages.
Mark the root of the class hierarchy with the sealed modifier. All direct subtypes must be defined within the same library (file):
sealed class Result<T> {
const Result();
}
final class Success<T> extends Result<T> {
final T data;
const Success(this.data);
}
final class Failure<T> extends Result<T> {
final Exception error;
final StackTrace? stackTrace;
const Failure(this.error, [this.stackTrace]);
}sealed: Cannot be instantiated directly, cannot be extended/implemented outside its defining library. Guarantees exhaustiveness in switch statements and expressions without needing a fallback default case.final: Subtype cannot be extended, implemented, or mixed in outside the library, preventing external hierarchy pollution.base: Subtype enforces inheritance; outside callers can extend it but cannot implement its interface.interface: Subtype enforces interface implementation; outside callers can implement it but cannot extend its implementation.Always leverage compiler exhaustiveness rather than adding a generic default branch:
String describeResult(Result<User> result) => switch (result) {
Success(:final data) => 'Loaded user: ${data.name}',
Failure(:final error) => 'Failed with: $error',
};default ensures that when a new subtype is added to the sealed family in the future, the Dart compiler will flag every unhandled switch expression across the codebase as a compile error..tessl-plugin
skills
dart-concurrency
dart-language
flutter-accessibility
flutter-ai-integration
flutter-animation
flutter-app-workflow
flutter-architecture
flutter-authentication
flutter-background-execution
flutter-build-release
flutter-ci-cd
flutter-code-review
flutter-dependency-upgrades
flutter-device-testing
flutter-figma-workflow
flutter-in-app-purchases
flutter-localization
references
flutter-networking
references
flutter-notifications
flutter-observability
flutter-openapi-client
flutter-package-development
flutter-performance
flutter-persistence
references
flutter-platform-integration
flutter-product-analytics
flutter-responsive-layout
flutter-runtime-debugging
flutter-security
flutter-state-management
flutter-testing
flutter-ui-design
flutter-ui-patterns
flutter-visual-effects