}
}
- Future<Null> createProduct(String name,double price,String cat) async {
+ Future<String> createProduct(String name,double pri,String cat) async {
try {
var url=_server+'/'+_db;
var response = await _http.post(
headers: {'Content-Type': 'application/json'},
body: JSON.encode({
'name': name,
- 'price': price,
+ 'price': pri,
'type': 'product',
'category': cat
})