Skip to content

Instantly share code, notes, and snippets.



Last active Sep 22, 2019
What would you like to do?
Future<List> _getAllEvents(String lectid) async{
var url = "";
final response = await,body: {
var jsonData = json.decode(response.body);
for(var i = 0; i < jsonData.length; i++) {
var _dt = jsonData[i]['EVT_DT'];
List _listDate = _dt.split("-");
_events[DateTime.parse(jsonData[i]['EVT_DT'])] = _dt;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.