Last active
April 12, 2020 12:48
-
-
Save obadajasm/3a4334ff996d21bf0f20313157e764a8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Future<void> getData(String moviename, String ep, String se) async { | |
try { | |
if (!isMovie && (ep == '' || se == '') || moviename == '') { | |
return; | |
} | |
clearData(); | |
await getid(moviename); | |
isMovie ? await getSub(id) : await getTvSub(id, ep, se); | |
notifyListeners(); | |
} catch (e) { | |
errMsg = "somthing went Wrong please try again ......"; | |
} | |
} | |
void clearData() { | |
if (responseBody != null) responseBody.clear(); | |
errMsg = ''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment