goBack method

  1. @Deprecated("Avoid use this instance, you should use context.navigator.pop()")
void goBack()

Do that:

Navigator.pop();

Implementation

@Deprecated("Avoid use this instance, you should use context.navigator.pop()")
void goBack() => Navigator.pop(this);