queryMoreThenUsingI000 method

Future<List<NewModel>> queryMoreThenUsingI000(
  1. int time
)

Implementation

Future<List<NewModel>> queryMoreThenUsingI000(int time) async {
  await _ready();

  List<Map> maps = await _NewModelDb.query('NewModel', where: 'I000 > ?', whereArgs: [time]);
  List<NewModel> result = [];

  if (maps.isNotEmpty) {
    for (var element in maps) {
      result.add(NewModel.fromMap(element));
    }
    return result;
  }
  return [];
}