getAvailableProfiles static method
Implementation
static Future<List<dynamic>> getAvailableProfiles() async {
/// ensure the capabilities is not empty
await ensureProfileLoaded();
var _profiles = printCapabilities['profiles'];
List<dynamic> res = [];
_profiles.forEach((k, v) {
res.add({
'key': k,
'vendor': v['vendor'] is String ? v['vendor'] : '',
'model': v['model'] is String ? v['model'] : '',
'description': v['description'] is String ? v['description'] : '',
});
});
return res;
}