diff --git a/packages/flutter/lib/src/cupertino/switch.dart b/packages/flutter/lib/src/cupertino/switch.dart index a9bc166e32..539cdeb292 100644 --- a/packages/flutter/lib/src/cupertino/switch.dart +++ b/packages/flutter/lib/src/cupertino/switch.dart @@ -59,6 +59,8 @@ const CupertinoDynamicColor _kOffLabelColor = CupertinoDynamicColor.withBrightne /// /// Used to toggle the on/off state of a single setting. /// +/// {@youtube 560 315 https://www.youtube.com/watch?v=24tg_N4sdMQ} +/// /// The switch itself does not maintain its toggle state. Instead, when the /// toggle state of the switch changes, the widget calls the [onChanged] /// callback. Most widgets that use a switch will listen for the [onChanged]