Events
class UserEventSignIn {
SignInPayloadPB request;
UserEventSignIn(this.request);
Future<Either<UserProfilePB, FlowyError>> send() {
final request = FFIRequest.create()
..event = UserEvent.SignIn.toString()
..payload = requestToBytes(this.request);
return Dispatch.asyncRequest(request)
.then((bytesResult) => bytesResult.fold(
(okBytes) => left(UserProfilePB.fromBuffer(okBytes)),
(errBytes) => right(FlowyError.fromBuffer(errBytes)),
));
}
}Code Generate Process
Step One - Definitions
Step Two - Configurations
Step Three - Build configuration
Step Four - Code Gen on Build
Message passing
Last updated
Was this helpful?

