Loading...
Loading...
Rules and formatting guidelines for writing Dart /// API documentation and doc comments. Use when documenting Dart code, writing doc comments for any Dart declaration (libraries, classes, methods, variables, etc.), or when instructed to follow the Effective Dart documentation guidelines.
npx skill4agent add dart-lang/skills dart-write-documentation_///////** ... *////\n////// The radius of the sphere./// Whether the connection is active./// Initializes the database.@param@return@throws@param@return@returns@throws@exception@see@type@override@override.new[ClassName.new][identifier][String.contains][String.contains()]`null``true``void`[null][true]@docImportlibrary;import```dart```shdart analyzecomment_referencesdart doc/// This method fetches data.
/// @param force true to force reload.
/// @return the data
/// @throws NetworkException if host is unreachable.
Data load(bool force) { ... }/// Fetches the remote data.
///
/// If [force] is true, this bypasses the local cache and forces a
/// network request.
///
/// Throws a [NetworkException] if the host is unreachable.
Data load(bool force) { ... }
/// Renders the widget to the screen.
Widget build(BuildContext context) { ... }/// Renders the widget to the screen.
Widget build(BuildContext context) { ... }/// Gets if the connection is active.
bool get isActive => _active;
/// This method initializes the connection.
void init() { ... }/// Whether the connection is active.
bool get isActive => _active;
/// Initializes the connection.
void init() { ... }/// Creates a new user. Similar to calling [User()].
User.create() { ... }/// Creates a new user. Similar to calling [User.new].
User.create() { ... }import 'package:http/http.dart'; // Adds unnecessary runtime dependency just for docs
/// To use this, you must pass a [Client]./// @docImport 'package:http/http.dart';
library;
/// To use this, you must pass a [Client].