From da7f8ebcd5e97c136bc041bfe29fc1a6ea2019d1 Mon Sep 17 00:00:00 2001 From: Daco Harkes Date: Wed, 15 Jan 2025 20:23:43 +0100 Subject: [PATCH] address comment --- pkgs/native_assets_cli/lib/src/config.dart | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/pkgs/native_assets_cli/lib/src/config.dart b/pkgs/native_assets_cli/lib/src/config.dart index 35336a52ff..250163b554 100644 --- a/pkgs/native_assets_cli/lib/src/config.dart +++ b/pkgs/native_assets_cli/lib/src/config.dart @@ -621,16 +621,9 @@ final class HookConfig { /// separately for different asset types. /// /// This means that hooks should be written in a way that they are a no-op if - /// they are invoked for an asset type that is not emitted by the hook: - /// - /// ```dart - /// if (input.config.buildAsstTypes.contains('some_asset_type')) { - /// // Emit some asset. - /// } - /// ``` - /// - /// Most asset extensions provide a shorthand. For example, `CodeAsset`s can - /// be used as follows: + /// they are invoked for an asset type that is not emitted by the hook. Most + /// asset extensions provide a to check [buildAssetTypes] for their own asset + /// type. For example, `CodeAsset`s can be used as follows: /// /// ```dart /// if (input.config.buildCodeAssets) {