AnInput<T extends ARequest> class
abstract
AnInput
Generic Input interface to use as boundary between Interactor and Controller
class AuthController{
final AnInput<AuthRequest> authInput;
const AuthController(this.authInput);
void login(String username, String password){
authInput.execute(AuthLoginRequest(username, password));
}
void loginWithGoogle(){
authInput.execute(AuthLoginWithGoogleRequest());
}
void logout(){
authInput.execute(AuthLogoutRequest());
}
}
Constructors
- AnInput()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
execute(
T request) → void -
Executes the request
The request is passed to the Interactor -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited