Search code examples
flutterdartmessagegetter

How can I resolve "The argument type '


The getter 'message' isn't defined for the type 'Object'. Try importing the library that defines 'message', correcting the name to the name of an existing getter, or defining a getter or field named 'message'.

image of the problem

I searched and didn't find any solution And I want to help someone


Solution

  • Guess it's firebase auth. Replace your catch(e) with this on FirebaseException catch (e)

    https://prnt.sc/Nx2K2WpsEOI5