fromKey static method
Implementation
static ProductFooterActionBar fromKey(String key) {
return switch (key) {
'add_price' => ProductFooterActionBar.addPrice,
'edit' => ProductFooterActionBar.edit,
'compare' => ProductFooterActionBar.compare,
'add_to_list' => ProductFooterActionBar.addToList,
'share' => ProductFooterActionBar.share,
'settings' => ProductFooterActionBar.settings,
'barcode' => ProductFooterActionBar.barcode,
'open_website' => ProductFooterActionBar.openWebsite,
'flag' => ProductFooterActionBar.report,
'add_property' => ProductFooterActionBar.addProperty,
_ => throw Exception('Unknown key $key'),
};
}