@@ -1010,14 +1010,12 @@ class CupertinoModalPopupRoute<T> extends PopupRoute<T> {
1010
1010
this .barrierLabel = 'Dismiss' ,
1011
1011
this .barrierColor = kCupertinoModalBarrierColor,
1012
1012
bool barrierDismissible = true ,
1013
- bool ? semanticsDismissible,
1013
+ bool semanticsDismissible = false ,
1014
1014
super .filter,
1015
1015
super .settings,
1016
1016
this .anchorPoint,
1017
- }) {
1018
- _barrierDismissible = barrierDismissible;
1019
- _semanticsDismissible = semanticsDismissible;
1020
- }
1017
+ }) : _barrierDismissible = barrierDismissible,
1018
+ _semanticsDismissible = semanticsDismissible;
1021
1019
1022
1020
/// A builder that builds the widget tree for the [CupertinoModalPopupRoute] .
1023
1021
///
@@ -1029,9 +1027,9 @@ class CupertinoModalPopupRoute<T> extends PopupRoute<T> {
1029
1027
/// widget needs to update dynamically.
1030
1028
final WidgetBuilder builder;
1031
1029
1032
- bool ? _barrierDismissible;
1030
+ final bool _barrierDismissible;
1033
1031
1034
- bool ? _semanticsDismissible;
1032
+ final bool _semanticsDismissible;
1035
1033
1036
1034
@override
1037
1035
final String barrierLabel;
@@ -1040,10 +1038,10 @@ class CupertinoModalPopupRoute<T> extends PopupRoute<T> {
1040
1038
final Color ? barrierColor;
1041
1039
1042
1040
@override
1043
- bool get barrierDismissible => _barrierDismissible ?? true ;
1041
+ bool get barrierDismissible => _barrierDismissible;
1044
1042
1045
1043
@override
1046
- bool get semanticsDismissible => _semanticsDismissible ?? false ;
1044
+ bool get semanticsDismissible => _semanticsDismissible;
1047
1045
1048
1046
@override
1049
1047
Duration get transitionDuration => _kModalPopupTransitionDuration;
@@ -1167,7 +1165,7 @@ Future<T?> showCupertinoModalPopup<T>({
1167
1165
Color barrierColor = kCupertinoModalBarrierColor,
1168
1166
bool barrierDismissible = true ,
1169
1167
bool useRootNavigator = true ,
1170
- bool ? semanticsDismissible,
1168
+ bool semanticsDismissible = false ,
1171
1169
RouteSettings ? routeSettings,
1172
1170
Offset ? anchorPoint,
1173
1171
}) {
0 commit comments