这两天我一直在寻找解决这个错误的方法
folder/
在我的 flutter 应用程序中,但我找不到任何解决方案。
这是我的代码:
我的功能:
'type 'MethodMirrorImpl' is not a subtype of type 'VariableMirror'
我的模型类:
final DataQueryBuilder queryBuilder = DataQueryBuilder();
Future<List<dynamic>> getData() async {
queryBuilder.pageSize = 50;
try {
final list = await Backendless.data.withClass<Movie>().find(queryBuilder);
return list;
}
catch (e) {
print(e);
}
return [];
}
我的主要配置:
@reflector
class Movie{
String _name;
String _type;
String _channel;
String _day;
String _hour;
String _minutes;
String _ampm;
String _url;
String _plot;
String get name => _name;
String get type => _type;
String get plot => _plot;
String get url => _url;
String get ampm => _ampm;
String get minutes => _minutes;
String get hour => _hour;
String get day => _day;
String get channel => _channel;
}
..................................... ..... ………………………………………………………………………………………………………………………………………………………… . ....