We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cec2a37 commit ede852bCopy full SHA for ede852b
packages/flutter/lib/src/cupertino/dialog.dart
@@ -148,14 +148,6 @@ const Color _kActionSheetButtonDividerColor = _kActionSheetContentTextColor;
148
// we want to change how the dialog is laid out.
149
const double _kMaxRegularTextScaleFactor = 1.4;
150
151
-// Returns the first element of the given list, or null if the list is empty.
152
-T? _maybeFirst<T>(List<T> l) {
153
- if (l.isEmpty) {
154
- return null;
155
- }
156
- return l.first;
157
-}
158
-
159
// Accessibility mode on iOS is determined by the text scale factor that the
160
// user has selected.
161
bool _isInAccessibilityMode(BuildContext context) {
0 commit comments