Here I have added a stepper to insert price for a added product in the app. But is there any way I can check whether he actually added a price or something else. I'm kind of new to programming, so please help me.
Container(
width: 150.0,
child: TextFormField(
initialValue: widget.update ? order.price.toString() : null,
autocorrect: false,
onSaved: (String value) {
price = int.parse(value);
},
decoration: new InputDecoration(
labelText: "Price",
hintText: 'Price',
prefixText: "Rs.",
),
),
)
,