not remembering the Result before sendEmail was called
creating a new instance of FlutterEmailSenderPlugin every time onAttachedToEngine was called. Instead, reusing the same instance of the plugin makes sure that the Result is set correctly when onActivityResult is called
Seems like the problem was caused by:
Result
beforesendEmail
was calledFlutterEmailSenderPlugin
every timeonAttachedToEngine
was called. Instead, reusing the same instance of the plugin makes sure that theResult
is set correctly whenonActivityResult
is called