File tree Expand file tree Collapse file tree
packages/flutter/lib/src/widgets Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -598,17 +598,15 @@ abstract class WidgetStateOutlinedBorder extends OutlinedBorder implements Widge
598598/// To use a [WidgetStateTextStyle] , you can either:
599599/// 1. Create a subclass of [WidgetStateTextStyle] and implement the abstract `resolve` method.
600600/// 2. Use [WidgetStateTextStyle.resolveWith] and pass in a callback that
601- /// will be used to resolve the color in the given states.
601+ /// will be used to resolve the text style in the given states.
602602/// 3. Use [WidgetStateTextStyle.fromMap] to assign a style using a [WidgetStateMap] .
603603///
604604/// If a [WidgetStateTextStyle] is used for a property or a parameter that doesn't
605- /// support resolving [WidgetStateProperty<TextStyle>] s, then its default color
605+ /// support resolving [WidgetStateProperty<TextStyle>] s, then its default text style
606606/// value will be used for all states.
607607///
608608/// To define a `const` [WidgetStateTextStyle] , you'll need to extend
609- /// [WidgetStateTextStyle] and override its [resolve] method. You'll also need
610- /// to provide a `defaultValue` to the super constructor, so that we can know
611- /// at compile-time what its default color is.
609+ /// [WidgetStateTextStyle] and override its [resolve] method.
612610/// See also:
613611///
614612/// * [MaterialStateTextStyle] , the Material specific version of
You can’t perform that action at this time.
0 commit comments