Skip to content

Commit 687c47d

Browse files
committedJun 8, 2021
Update to dart null-safety
1 parent 9c14d5d commit 687c47d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+400
-333
lines changed
 

‎lib/models/all_restaurant.dart

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import 'package:flutter/foundation.dart';
21
import 'package:swiggy_ui/models/spotlight_best_top_food.dart';
32

43
import 'indian_food.dart';
54

65
class AllRestaurant {
76
const AllRestaurant({
8-
@required this.image,
9-
@required this.name,
7+
required this.image,
8+
required this.name,
109
});
1110

1211
final String image;
@@ -187,9 +186,9 @@ class AllRestaurant {
187186

188187
class LargeRestaurantBanner {
189188
const LargeRestaurantBanner({
190-
@required this.image,
191-
@required this.title,
192-
@required this.subtitle,
189+
required this.image,
190+
required this.title,
191+
required this.subtitle,
193192
});
194193

195194
final String image;

‎lib/models/available_coupon.dart

+17-12
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
import 'package:flutter/foundation.dart';
2-
31
class AvailableCoupon {
42
const AvailableCoupon({
5-
@required this.coupon,
6-
@required this.discount,
7-
@required this.desc,
3+
required this.coupon,
4+
required this.discount,
5+
required this.desc,
86
});
97

108
final String coupon;
@@ -16,37 +14,44 @@ class AvailableCoupon {
1614
AvailableCoupon(
1715
coupon: '100INDUSIND',
1816
discount: 'Get 20 % discount using Induslnd Bank Credit Cards',
19-
desc: 'Use code 100INDUSIND & get 20 % discount up to Rs100 on orders above Rs400',
17+
desc:
18+
'Use code 100INDUSIND & get 20 % discount up to Rs100 on orders above Rs400',
2019
),
2120
AvailableCoupon(
2221
coupon: 'HSBC500',
2322
discount: 'Get 15 % discount using HSBC Bank Credit Cards',
24-
desc: 'Use code HSBC500 & get 14 % discount up to Rs125 on orders above Rs500',
23+
desc:
24+
'Use code HSBC500 & get 14 % discount up to Rs125 on orders above Rs500',
2525
),
2626
AvailableCoupon(
2727
coupon: '100TMB',
2828
discount: 'Get 20 % discount using TMB Bank Credit Cards',
29-
desc: 'Use code 100TMB & get 20 % discount up to Rs100 on orders above Rs400',
29+
desc:
30+
'Use code 100TMB & get 20 % discount up to Rs100 on orders above Rs400',
3031
),
3132
AvailableCoupon(
3233
coupon: 'INDUSIND20',
3334
discount: 'Get 20 % discount using Induslnd Bank Credit Cards',
34-
desc: 'Use code INDUSIND20 & get 20 % discount up to Rs200 on orders above Rs600',
35+
desc:
36+
'Use code INDUSIND20 & get 20 % discount up to Rs200 on orders above Rs600',
3537
),
3638
AvailableCoupon(
3739
coupon: 'HSBC5100',
3840
discount: 'Get 20 % discount using Induslnd Bank Credit Cards',
39-
desc: 'Use code HSBC5100 & get 20 % discount up to Rs100 on orders above Rs400',
41+
desc:
42+
'Use code HSBC5100 & get 20 % discount up to Rs100 on orders above Rs400',
4043
),
4144
AvailableCoupon(
4245
coupon: '100AXIS',
4346
discount: 'Get 20 % discount using Axis Bank Credit Cards',
44-
desc: 'Use code 100AXIS & get 20 % discount up to Rs100 on orders above Rs400',
47+
desc:
48+
'Use code 100AXIS & get 20 % discount up to Rs100 on orders above Rs400',
4549
),
4650
AvailableCoupon(
4751
coupon: '100INDUSIND',
4852
discount: 'Get 20 % discount using Induslnd Bank Credit Cards',
49-
desc: 'Use code 100INDUSIND & get 20 % discount up to Rs100 on orders above Rs400',
53+
desc:
54+
'Use code 100INDUSIND & get 20 % discount up to Rs100 on orders above Rs400',
5055
),
5156
];
5257
}

0 commit comments

Comments
 (0)
Please sign in to comment.