


# CustomRoutine&lt;R, Data> class






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



<p>Calls on each cubit action of this package.</p>
<p>Useful to register custom logic on pre-implemented logic.</p>




## Constructors

[CustomRoutine](../wyatt_authentication_bloc/CustomRoutine/CustomRoutine.md) ({required [FutureOr](https://api.flutter.dev/flutter/dart-async/FutureOr-class.html)&lt;Result&lt;R, AppException>> routine(), required [FutureOr](https://api.flutter.dev/flutter/dart-async/FutureOr-class.html)&lt;Result&lt;Data?, AppException>> attachedLogic(Result&lt;R, AppException> routineResult), required void onError(AppException exception), required void onSuccess(R result, Data? data)})

  _const_ 


## Properties

##### [attachedLogic](../wyatt_authentication_bloc/CustomRoutine/attachedLogic.md) &#8594; [FutureOr](https://api.flutter.dev/flutter/dart-async/FutureOr-class.html)&lt;Result&lt;Data?, AppException>> Function(Result&lt;R, AppException> routineResult)



  
_<span class="feature">final</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>_



##### [onError](../wyatt_authentication_bloc/CustomRoutine/onError.md) &#8594; void Function(AppException exception)



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



##### [onSuccess](../wyatt_authentication_bloc/CustomRoutine/onSuccess.md) &#8594; void Function(R result, Data? data)



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



##### [routine](../wyatt_authentication_bloc/CustomRoutine/routine.md) &#8594; [FutureOr](https://api.flutter.dev/flutter/dart-async/FutureOr-class.html)&lt;Result&lt;R, AppException>> Function()



  
_<span class="feature">final</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>_





## Methods

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



  




##### [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>_



##### [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>_





## 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>_















