From 868c4d467f1558b26c6637f60e35e36ecc5eff0c Mon Sep 17 00:00:00 2001 From: pshenmic Date: Tue, 20 Feb 2024 18:21:14 +0300 Subject: [PATCH] Fix id --- lib/routes/payment.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/routes/payment.dart b/lib/routes/payment.dart index edd6152e..248c6f9e 100644 --- a/lib/routes/payment.dart +++ b/lib/routes/payment.dart @@ -20,12 +20,12 @@ class Payment extends StatelessWidget { } class PaymentPage extends StatefulWidget { - PaymentPage({Key? key, this.id}) : super(key: key); + PaymentPage({Key? key, required this.id}) : super(key: key); - final String? id; + final String id; @override - _PaymentPageState createState() => _PaymentPageState(id ?? ''); + _PaymentPageState createState() => _PaymentPageState(id); } class _PaymentPageState extends State {