@@ -29,7 +29,7 @@ void main() {
2929 expect (product.notes, 'A test beer' );
3030 expect (product.statusText, 'Plenty left' );
3131 expect (product.bar, 'Main Bar' );
32- expect (product.vegan , isTrue);
32+ expect (product.isVegan , isTrue);
3333 expect (product.allergens, {'gluten' : 1 });
3434 });
3535
@@ -48,7 +48,7 @@ void main() {
4848 expect (product.notes, isNull);
4949 expect (product.statusText, isNull);
5050 expect (product.bar, isNull);
51- expect (product.vegan , isNull);
51+ expect (product.isVegan , isNull);
5252 expect (product.allergens, isEmpty);
5353 });
5454
@@ -198,7 +198,7 @@ void main() {
198198 'abv' : '4.0' ,
199199 'vegan' : true ,
200200 });
201- expect (product.vegan , isTrue);
201+ expect (product.isVegan , isTrue);
202202 });
203203
204204 test ('prefers is_vegan when both keys are present' , () {
@@ -211,7 +211,7 @@ void main() {
211211 'is_vegan' : false ,
212212 'vegan' : true ,
213213 });
214- expect (product.vegan , isFalse);
214+ expect (product.isVegan , isFalse);
215215 });
216216
217217 test ('parses numeric one as true' , () {
@@ -223,7 +223,7 @@ void main() {
223223 'abv' : '4.0' ,
224224 'is_vegan' : 1 ,
225225 });
226- expect (product.vegan , isTrue);
226+ expect (product.isVegan , isTrue);
227227 });
228228
229229 test ('parses numeric zero as false' , () {
@@ -235,7 +235,7 @@ void main() {
235235 'abv' : '4.0' ,
236236 'is_vegan' : 0 ,
237237 });
238- expect (product.vegan , isFalse);
238+ expect (product.isVegan , isFalse);
239239 });
240240
241241 test ('parses supported string values' , () {
@@ -287,12 +287,12 @@ void main() {
287287 'abv' : '4.0' ,
288288 'is_vegan' : '0' ,
289289 });
290- expect (yesProduct.vegan , isTrue);
291- expect (noProduct.vegan , isFalse);
292- expect (trueProduct.vegan , isTrue);
293- expect (falseProduct.vegan , isFalse);
294- expect (oneProduct.vegan , isTrue);
295- expect (zeroProduct.vegan , isFalse);
290+ expect (yesProduct.isVegan , isTrue);
291+ expect (noProduct.isVegan , isFalse);
292+ expect (trueProduct.isVegan , isTrue);
293+ expect (falseProduct.isVegan , isFalse);
294+ expect (oneProduct.isVegan , isTrue);
295+ expect (zeroProduct.isVegan , isFalse);
296296 });
297297
298298 test ('returns null for unsupported string values' , () {
@@ -304,7 +304,7 @@ void main() {
304304 'abv' : '4.0' ,
305305 'is_vegan' : 'maybe' ,
306306 });
307- expect (product.vegan , isNull);
307+ expect (product.isVegan , isNull);
308308 });
309309 });
310310
@@ -433,7 +433,7 @@ void main() {
433433 notes: 'A test beer' ,
434434 statusText: 'Plenty left' ,
435435 bar: 'Main Bar' ,
436- vegan : true ,
436+ isVegan : true ,
437437 allergens: {'gluten' : 1 },
438438 );
439439
@@ -828,7 +828,7 @@ void main() {
828828 expect (drink.notes, 'Hoppy and bold' );
829829 expect (drink.statusText, 'Plenty left' );
830830 expect (drink.bar, 'Bar A' );
831- expect (drink.vegan , isTrue);
831+ expect (drink.isVegan , isTrue);
832832 expect (drink.allergens, {'gluten' : 1 });
833833 expect (drink.availabilityStatus, AvailabilityStatus .plenty);
834834 expect (drink.allergenText, 'Gluten' );
0 commit comments