title: How to fix A value of type 'AuthResult' can't be assigned to a variable of type 'FirebaseUser'
body: <p>I tried to change form firebaseuser to authresults</p>
  
  <pre><code>import 'package:flutter/material.dart';
  import 'package:firebase_auth/firebase_auth.dart';
  abstract class AuthImplementaion {
  
  }
  class Auth implements AuthImplementaion {
    final FirebaseAuth _firebaseAuth = FirebaseAuth.instance;
    Future&lt;String&gt; SignIn(String _email, String _password) async{
      FirebaseUser user = await _firebaseAuth.signInWithEmailAndPassword(email: _email, password: _password);
      return user.uid;
    }
  }
  </code></pre>
  
  <p>message: A value of type "AuthResult" can't be assigned to a variable of type "FirebaseUser".Try changing the type of the variable, or casting the right-hand type to "FirebaseUser"</p>