The Android and iOS versions of this function had diverged. This patch makes the iOS version match the Android version (and what the framework expects). Fixes https://github.com/flutter/flutter/issues/8878
The Android and iOS versions of this function had diverged. This patch makes the iOS version match the Android version (and what the framework expects). Fixes https://github.com/flutter/flutter/issues/8878