We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.6.5
stg.lin-saas.com
Chrome, Edge(Macbook)
space
Done
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
Validator:
abstract class Validator<T> { Either<Failure, Success> validate(T value); }
EmptyNameValidator
class EmptyNameValidator extends Validator<NewNameRequest> { @override Either<Failure, Success> validate(NewNameRequest value) { if (value.value == null || value.value!.isEmpty) { return Left<Failure, Success>(VerifyNameFailure(const EmptyNameException())); } else { return Right<Failure, Success>(VerifyNameViewState()); } } }
CompositeNameValidator
class CompositeNameValidator extends Validator<NewNameRequest> { final List<Validator> _listValidator; CompositeNameValidator(this._listValidator); @override Either<Failure, Success> validate(NewNameRequest value) { return _listValidator.isNotEmpty ? _listValidator.getValidatorNameViewState(value) : Right<Failure, Success>(VerifyNameViewState()); } }
VerifyNameInteractor
class VerifyNameInteractor { Either<Failure, Success> execute(String? newName, List<Validator> listValidator) { try { return CompositeNameValidator(listValidator).validate(NewNameRequest(newName)); } catch (exception) { return Left<Failure, Success>(VerifyNameFailure(exception)); } } }
KhaledNjim
No branches or pull requests
Env:
2.6.5
stg.lin-saas.com
Chrome, Edge(Macbook)
Steps to reproduce
space
in name input fieldDone
icon to creates a group chatExpectation
Evidence
Screen.Recording.2024-09-23.at.11.56.37.mov
The text was updated successfully, but these errors were encountered: