diff --git a/packages/flutter/lib/src/widgets/widget_state.dart b/packages/flutter/lib/src/widgets/widget_state.dart index 9e4b5d924a..c86d4b86b1 100644 --- a/packages/flutter/lib/src/widgets/widget_state.dart +++ b/packages/flutter/lib/src/widgets/widget_state.dart @@ -643,11 +643,11 @@ class WidgetStatePropertyAll implements WidgetStateProperty { /// or loses the focus it will [update] its controller's [value] and /// notify listeners of the change. /// -/// When calling `setState` in a [MaterialStatesController] listener, use the +/// When calling `setState` in a [WidgetStatesController] listener, use the /// [SchedulerBinding.addPostFrameCallback] to delay the call to `setState` after /// the frame has been rendered. It's generally prudent to use the /// [SchedulerBinding.addPostFrameCallback] because some of the widgets that -/// depend on [MaterialStatesController] may call [update] in their build method. +/// depend on [WidgetStatesController] may call [update] in their build method. /// In such cases, listener's that call `setState` - during the build phase - will cause /// an error. ///