Add tests for single_activator.0.dart API example. (#147426)

This PR contributes to https://github.com/flutter/flutter/issues/130459

### Description
- Fixes name of the `examples/api/lib/widgets/shortcuts/single_activator.single_activator.0.dart`
- Adds tests for `examples/api/lib/widgets/shortcuts/single_activator.0.dart`
This commit is contained in:
Kostia Sokolovskyi
2024-05-01 16:52:57 +02:00
committed by GitHub
parent 2867ac7885
commit d33bb8fa5e
4 changed files with 49 additions and 3 deletions

View File

@@ -432,7 +432,7 @@ class SingleActivator with Diagnosticable, MenuSerializableShortcut implements S
/// In the following example, the shortcut `Control + C` increases the
/// counter:
///
/// ** See code in examples/api/lib/widgets/shortcuts/single_activator.single_activator.0.dart **
/// ** See code in examples/api/lib/widgets/shortcuts/single_activator.0.dart **
/// {@end-tool}
const SingleActivator(
this.trigger, {