Skip to content

Commit 82c6134

Browse files
author
WooSignal
committed
formatted code for better readability
1 parent 09e2268 commit 82c6134

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

example/main.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ class _MyHomePageState extends State<MyHomePage> {
3030
String _productName = "";
3131

3232
_incrementCounter() async {
33-
3433
// CONFIG FOR WOOSIGNAL
3534
var wsConfig = {"appKey": "your app key", "debugMode": true};
3635

lib/models/response/product_variation.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,10 @@ class ProductVariation {
115115
downloadExpiry = json['download_expiry'],
116116
taxStatus = json['tax_status'],
117117
taxClass = json['tax_class'],
118-
manageStock = (json['manage_stock'] != null && json['manage_stock'] is bool) ? json['manage_stock'] : false,
118+
manageStock =
119+
(json['manage_stock'] != null && json['manage_stock'] is bool)
120+
? json['manage_stock']
121+
: false,
119122
stockQuantity = json['stock_quantity'],
120123
stockStatus = json['stock_status'],
121124
backorders = json['backorders'],

0 commit comments

Comments
 (0)