Skip to content

Commit e74f5cf

Browse files
committed
Fix incorrect documentation about ifRestrictedRunInstead in NoParam variants
Corrected Variant Differences section: - NoParam variants DO have ifRestrictedRunInstead parameter - It's signature is void Function() instead of RunInsteadHandler<TParam> - Previous doc incorrectly stated NoParam variants don't have this parameter Verified against source code in command_it.dart lines 1196 and 1315.
1 parent 729c0d1 commit e74f5cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/documentation/command_it/command_types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ All 12 factory functions use the same parameter pattern above, with these variat
9494

9595
**NoParam variants:**
9696
- Function signature has **no parameter**: `Future<TResult> Function()` instead of `Future<TResult> Function(TParam)`
97-
- **No `ifRestrictedRunInstead` parameter** (since there's no param to pass to it)
97+
- **`ifRestrictedRunInstead` has no parameter**: `void Function()` instead of `RunInsteadHandler<TParam>`
9898

9999
**NoResult variants:**
100100
- Function returns `void`: `Future<void> Function(TParam)` instead of `Future<TResult> Function(TParam)`

0 commit comments

Comments
 (0)