Created
December 5, 2019 16:03
-
-
Save fabiojansenbr/be84f3dd81b6c18c35b03a7d2ddd61b5 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
_deleteData() async { | |
setState(() { | |
isLoading = true; | |
}); | |
await DBProvider.db.deleteAllEmployees(); | |
// wait for 1 second to simulate loading of data | |
await Future.delayed(const Duration(seconds: 1)); | |
setState(() { | |
isLoading = false; | |
}); | |
print('All employees deleted'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment