


# PasswordResetCubit&lt;Extra> class






    *[<Null safety>](https://dart.dev/null-safety)*



<p>Cubit that allows user to reset his password</p>



**Inheritance**

- [Object](https://api.flutter.dev/flutter/dart-core/Object-class.html)
- [BlocBase](https://pub.dev/documentation/bloc/8.1.0/bloc/BlocBase-class.html)&lt;[PasswordResetState](../wyatt_authentication_bloc/PasswordResetState-class.md)>
- [Cubit](https://pub.dev/documentation/bloc/8.1.0/bloc/Cubit-class.html)&lt;[PasswordResetState](../wyatt_authentication_bloc/PasswordResetState-class.md)>
- PasswordResetCubit








## Constructors

[PasswordResetCubit](../wyatt_authentication_bloc/PasswordResetCubit/PasswordResetCubit.md) ({required [AuthenticationRepository](../wyatt_authentication_bloc/AuthenticationRepository-class.md)&lt;Extra> authenticationRepository})

   


## Properties

##### [authenticationRepository](../wyatt_authentication_bloc/PasswordResetCubit/authenticationRepository.md) &#8594; [AuthenticationRepository](../wyatt_authentication_bloc/AuthenticationRepository-class.md)&lt;Extra>



  
_<span class="feature">final</span>_



##### [formName](../wyatt_authentication_bloc/PasswordResetCubit/formName.md) &#8594; [String](https://api.flutter.dev/flutter/dart-core/String-class.html)



  
_<span class="feature">read-only</span>_



##### [formRepository](../wyatt_authentication_bloc/PasswordResetCubit/formRepository.md) &#8594; FormRepository



  
_<span class="feature">read-only</span>_



##### [hashCode](https://api.flutter.dev/flutter/dart-core/Object/hashCode.html) &#8594; [int](https://api.flutter.dev/flutter/dart-core/int-class.html)



The hash code for this object.  
_<span class="feature">read-only</span><span class="feature">inherited</span>_



##### [isClosed](https://pub.dev/documentation/bloc/8.1.0/bloc/BlocBase/isClosed.html) &#8594; [bool](https://api.flutter.dev/flutter/dart-core/bool-class.html)



Whether the bloc is closed.  
_<span class="feature">read-only</span><span class="feature">inherited</span>_



##### [runtimeType](https://api.flutter.dev/flutter/dart-core/Object/runtimeType.html) &#8594; [Type](https://api.flutter.dev/flutter/dart-core/Type-class.html)



A representation of the runtime type of the object.  
_<span class="feature">read-only</span><span class="feature">inherited</span>_



##### [state](https://pub.dev/documentation/bloc/8.1.0/bloc/BlocBase/state.html) &#8594; [PasswordResetState](../wyatt_authentication_bloc/PasswordResetState-class.md)



The current <a href="https://pub.dev/documentation/bloc/8.1.0/bloc/BlocBase/state.html">state</a>.  
_<span class="feature">read-only</span><span class="feature">inherited</span>_



##### [stream](https://pub.dev/documentation/bloc/8.1.0/bloc/BlocBase/stream.html) &#8594; [Stream](https://api.flutter.dev/flutter/dart-async/Stream-class.html)&lt;[PasswordResetState](../wyatt_authentication_bloc/PasswordResetState-class.md)>



The current <a href="https://pub.dev/documentation/bloc/8.1.0/bloc/BlocBase/stream.html">stream</a> of states.  
_<span class="feature">read-only</span><span class="feature">inherited</span>_





## Methods

##### [addError](https://pub.dev/documentation/bloc/8.1.0/bloc/BlocBase/addError.html)([Object](https://api.flutter.dev/flutter/dart-core/Object-class.html) error, [[StackTrace](https://api.flutter.dev/flutter/dart-core/StackTrace-class.html)? stackTrace]) void



Reports an <code>error</code> which triggers <a href="https://pub.dev/documentation/bloc/8.1.0/bloc/BlocBase/onError.html">onError</a> with an optional <a href="https://api.flutter.dev/flutter/dart-core/StackTrace-class.html">StackTrace</a>.  
_<span class="feature">inherited</span>_



##### [close](https://pub.dev/documentation/bloc/8.1.0/bloc/BlocBase/close.html)() [Future](https://api.flutter.dev/flutter/dart-async/Future-class.html)&lt;void>



Closes the instance.
This method should be called when the instance is no longer needed.
Once <a href="https://pub.dev/documentation/bloc/8.1.0/bloc/BlocBase/close.html">close</a> is called, the instance can no longer be used.  
_<span class="feature">inherited</span>_



##### [dataChanged](../wyatt_authentication_bloc/PasswordResetCubit/dataChanged.md)&lt;Value>([String](https://api.flutter.dev/flutter/dart-core/String-class.html) key, FormInputValidator&lt;Value, ValidationError> dirtyValue) [FutureOr](https://api.flutter.dev/flutter/dart-async/FutureOr-class.html)&lt;void>



  




##### [emailChanged](../wyatt_authentication_bloc/PasswordResetCubit/emailChanged.md)([String](https://api.flutter.dev/flutter/dart-core/String-class.html) value) void



  




##### [emailCustomChanged](../wyatt_authentication_bloc/PasswordResetCubit/emailCustomChanged.md)&lt;Validator extends FormInputValidator&lt;[String](https://api.flutter.dev/flutter/dart-core/String-class.html)?, ValidationError>>(Validator validator) void



Same as <a href="../wyatt_authentication_bloc/PasswordResetCubit/emailChanged.md">emailChanged</a> but with a custom <code>Validator</code>.  




##### [emit](https://pub.dev/documentation/bloc/8.1.0/bloc/BlocBase/emit.html)([PasswordResetState](../wyatt_authentication_bloc/PasswordResetState-class.md) state) void



Updates the <code>state</code> to the provided <code>state</code>.
<a href="https://pub.dev/documentation/bloc/8.1.0/bloc/BlocBase/emit.html">emit</a> does nothing if the <code>state</code> being emitted
is equal to the current <code>state</code>.  
_<span class="feature">inherited</span>_



##### [noSuchMethod](https://api.flutter.dev/flutter/dart-core/Object/noSuchMethod.html)([Invocation](https://api.flutter.dev/flutter/dart-core/Invocation-class.html) invocation) dynamic



Invoked when a non-existent method or property is accessed.  
_<span class="feature">inherited</span>_



##### [onChange](https://pub.dev/documentation/bloc/8.1.0/bloc/BlocBase/onChange.html)([Change](https://pub.dev/documentation/bloc/8.1.0/bloc/Change-class.html)&lt;[PasswordResetState](../wyatt_authentication_bloc/PasswordResetState-class.md)> change) void



Called whenever a <code>change</code> occurs with the given <code>change</code>.
A <code>change</code> occurs when a new <code>state</code> is emitted.
<a href="https://pub.dev/documentation/bloc/8.1.0/bloc/BlocBase/onChange.html">onChange</a> is called before the <code>state</code> of the <code>cubit</code> is updated.
<a href="https://pub.dev/documentation/bloc/8.1.0/bloc/BlocBase/onChange.html">onChange</a> is a great spot to add logging/analytics for a specific <code>cubit</code>.  
_<span class="feature">inherited</span>_



##### [onError](https://pub.dev/documentation/bloc/8.1.0/bloc/BlocBase/onError.html)([Object](https://api.flutter.dev/flutter/dart-core/Object-class.html) error, [StackTrace](https://api.flutter.dev/flutter/dart-core/StackTrace-class.html) stackTrace) void



Called whenever an <code>error</code> occurs and notifies <a href="https://pub.dev/documentation/bloc/8.1.0/bloc/BlocObserver/onError.html">BlocObserver.onError</a>.  
_<span class="feature">inherited</span>_



##### [reset](../wyatt_authentication_bloc/PasswordResetCubit/reset.md)() [FutureOr](https://api.flutter.dev/flutter/dart-async/FutureOr-class.html)&lt;void>



  




##### [submit](../wyatt_authentication_bloc/PasswordResetCubit/submit.md)() [FutureOr](https://api.flutter.dev/flutter/dart-async/FutureOr-class.html)&lt;void>



Sends a password reset email to the user  




##### [toString](https://api.flutter.dev/flutter/dart-core/Object/toString.html)() [String](https://api.flutter.dev/flutter/dart-core/String-class.html)



A string representation of this object.  
_<span class="feature">inherited</span>_



##### [update](../wyatt_authentication_bloc/PasswordResetCubit/update.md)(WyattForm form, {SetOperation operation = SetOperation.replace}) [FutureOr](https://api.flutter.dev/flutter/dart-async/FutureOr-class.html)&lt;void>



  




##### [validate](../wyatt_authentication_bloc/PasswordResetCubit/validate.md)() [FutureOr](https://api.flutter.dev/flutter/dart-async/FutureOr-class.html)&lt;void>



  






## Operators

##### [operator ==](https://api.flutter.dev/flutter/dart-core/Object/operator_equals.html)([Object](https://api.flutter.dev/flutter/dart-core/Object-class.html) other) [bool](https://api.flutter.dev/flutter/dart-core/bool-class.html)



The equality operator.  
_<span class="feature">inherited</span>_















