import 'package:get/get.dart'; import 'api_provider_base.dart'; class ApiProvider extends BaseProvider { Future requestForVCode(String email) => post(getVerificationCodeUrl.toUrl, null,query: { 'email':email, }); Future register(String countryCode, String countryId, String mobile, String password, String uniqueid, String verificationCode) => post(registerUrl.toUrl, null,query: { 'countryCode':countryCode, 'countryId':countryId, "mobile":mobile, 'password':password, 'platId':"2", "uniqueid":uniqueid, 'verificationCode':verificationCode, }); Future getSliderVerifyImg(String countryCode, String account) => post(getSliderVerifyImgUrl.toUrl, null,query: { 'countryCode':countryCode, 'account':account, }); Future checkSliderVerifyImg(String countryCode, String account, String xWidth) => post(checkImgUrl.toUrl, null,query: { 'countryCode':countryCode, 'account':account, 'xWidth':xWidth, }); Future login(String email,String password) => post(loginUrl.toUrl, null,query: {'email':email,'password':password}); } extension ExtensionString on String { String get toUrl => '$this'; }