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'.
I searched and didn't find any solution And I want to help someone
Guess it's firebase auth. Replace your catch(e) with this on FirebaseException catch (e)