getDouble static method

Future<double?> getDouble(
  1. DatabaseCompute data
)

Implementation

static Future<double?> getDouble(DatabaseCompute data) async {
  DBMerge db = await connect();
  List<Map> list = await db.table('data').where('name', '=', data.name ?? '').where('type', '=', 'double').get();
  return list.isEmpty ? null : double.tryParse(_decrypt(data.encrypt, list.first['text']));
}