This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://en.wikipedia.org/wiki/De_Morgan%27s_laws -- context on de Morgan's Law | |
void main() { | |
final Brand brand = Brand.toyota; | |
final Region region = Region.na; | |
bool isNaRegion = region == Region.na; | |
bool isOcRegion = region == Region.oc; | |
print('\ntest case:'); | |
print('NG -- skip: ${brand != Brand.toyota && !isOcRegion}'); | |
print('OK -- skip: ${brand != Brand.toyota || !isOcRegion}'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:ui'; | |
import 'package:flutter/material.dart'; | |
void main() => runApp(const MyBlurryApp()); | |
class MyBlurryApp extends StatelessWidget { | |
const MyBlurryApp({super.key}); | |
@override |