I am getting following error:
E/flutter (21169): [ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: type 'List' is not a subtype of type 'List' in type cast
type of getPatientDataList() is Future<List<List<dynamic>> Function().
and I want to create a List<List<<double>>> i.e. sublist. But all time failed.
getPatientDataList().then((result) {
dataSize = result.length;
List<List<double>> list = (result.getRange(0, 500).toList()).cast<List<List<double>>>();
print("data " + list.toString());
});