File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ Typography zulipTypography(BuildContext context) {
73
73
// Set [TextStyle.debugLabel] for all styles, like:
74
74
// "zulipTypography black titleMedium"
75
75
76
- mkAddLabel (String debugTextThemeLabel)
76
+ TextStyleConverter mkAddLabel (String debugTextThemeLabel)
77
77
=> (TextStyle ? maybeInputStyle, String debugStyleLabel)
78
78
=> maybeInputStyle? .copyWith (debugLabel: '$debugTextThemeLabel $debugStyleLabel ' );
79
79
@@ -119,9 +119,11 @@ TextTheme _weightVariableTextTheme(BuildContext context, TextTheme input) {
119
119
return _convertTextTheme (input, convert);
120
120
}
121
121
122
+ typedef TextStyleConverter = TextStyle ? Function (TextStyle ? , String debugStyleLabel);
123
+
122
124
TextTheme _convertTextTheme (
123
125
TextTheme input,
124
- TextStyle ? Function ( TextStyle ? , String debugStyleLabel) converter,
126
+ TextStyleConverter converter,
125
127
) => TextTheme (
126
128
displayLarge: converter (input.displayLarge, 'displayLarge' ),
127
129
displayMedium: converter (input.displayMedium, 'displayMedium' ),
You can’t perform that action at this time.
0 commit comments