Skip to content

Instantly share code, notes, and snippets.

// 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}');
@liitx
liitx / blurPoc.dart
Last active August 29, 2025 23:06
smooth blur transparent blend into image asset
import 'dart:ui';
import 'package:flutter/material.dart';
void main() => runApp(const MyBlurryApp());
class MyBlurryApp extends StatelessWidget {
const MyBlurryApp({super.key});
@override