diff --git a/packages/flutter/lib/src/services/system_navigator.dart b/packages/flutter/lib/src/services/system_navigator.dart index d48d3afa05..bb30aa8816 100644 --- a/packages/flutter/lib/src/services/system_navigator.dart +++ b/packages/flutter/lib/src/services/system_navigator.dart @@ -21,10 +21,14 @@ class SystemNavigator { /// `dismissViewControllerAnimated:completion:` if the top view /// controller is a `FlutterViewController`. /// + /// The optional `animated` parameter is ignored on all platforms + /// except iOS where it is an argument to the aforementioned + /// methods. + /// /// This method should be preferred over calling `dart:io`'s [exit] /// method, as the latter may cause the underlying platform to act /// as if the application had crashed. - static Future pop() async { - await SystemChannels.platform.invokeMethod('SystemNavigator.pop'); + static Future pop({bool animated}) async { + await SystemChannels.platform.invokeMethod('SystemNavigator.pop', animated); } }