prefer_is_empty and prefer_is_not_empty (#8474)
This commit is contained in:
committed by
Adam Barth
parent
2f002885cc
commit
69b6bb87d1
@@ -775,7 +775,7 @@ abstract class ModalRoute<T> extends TransitionRoute<T> with LocalHistoryRoute<T
|
||||
/// * [removeScopedWillPopCallback], which removes a callback.
|
||||
@protected
|
||||
bool get hasScopedWillPopCallback {
|
||||
return _scopeKey.currentState == null || _scopeKey.currentState._willPopCallbacks.length > 0;
|
||||
return _scopeKey.currentState == null || _scopeKey.currentState._willPopCallbacks.isNotEmpty;
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user