How to create a card token in stripe using flutter_stripe package?

Hello there,
I am able to create token using stripe_payment package but this package is deprecated, I replaced with flutter_stripe package.
the question is;
Using card details how to create a token in stripe and then I send that token to my server and server will proceed the payment.