pop method
Pop (finish) the current Flutter Activity/ViewController.
result is delivered to the caller that opened this screen with a
result callback (onResult natively, a *ForResult future in Dart).
Encode typed results with the generated encodeResult; the generated
popWithResult does both steps in one call.
Implementation
@override
Future<void> pop([Object? result]) async {
popCount++;
poppedResults.add(result);
}