getBool static method
Implementation
static Future<bool?> getBool(DatabaseCompute data) async {
DBMerge db = await connect();
List<Map> list = await db.table('data').where('name', '=', data.name ?? '').where('type', '=', 'bool').get();
return list.isEmpty
? null
: list.first['text'] == null
? null
: (list.first['text'] == '1' ? true : false);
}