Loading...
Loading...
Use idiomatic doc comments to provide a professional API surface.
npx skill4agent add dart-lang/skills dart-documentation////// Deletes the file at [path].
///
/// Throws an [IOError] if the file could not be found. Throws a
/// [PermissionError] if the file is present but could not be deleted.
void delete(String path) { ... }[]@param@returns/// Defines a flag with the given [name] and [abbreviation].
///
/// Returns a new flag.
///
/// Throws a [DuplicateFlagException] if there is already an option named
/// [name] or there is already an option using the [abbreviation].
Flag addFlag(String name, String abbreviation) => .../// A button that can be flipped on and off.
(selector: 'toggle')
class ToggleComponent {}dart doc# Ensure dependencies are resolved and code is valid
dart pub get
dart analyze
# Run a dry-run to catch documentation warnings/errors
dart doc --dry-run .dart doc --dry-run .[identifier]dart doc .
# Optionally specify output: dart doc --output=api_docs .////** ... *//* ... */[][Duration.inDays][Point.new]dart ... dart doc --validate-links--dry-rundart-effective-style