getTimelinesData method
Implementation
@override
Future<List<TimeLine>> getTimelinesData() async {
final result = await methodChannel.invokeMethod("getTimelinesData");
if (result == null) {
return [];
}
final List jsonArray = jsonDecode(result);
final timelines = jsonArray.map((json) => TimeLine.fromJson(json)).toList();
return timelines;
}