wafrat
  • Home
  • About
  • Contact me
Subscribe

Who's the gourmet brewmaster from Culinary Class Wars 2?

wafrat

Dec 16, 2025

The one who makes soju? https://www.instagram.com/yunjudang/. You're welcome!

Sign up for more like this.

Enter your email
Subscribe

Mocking cross-platform plugins like url_launcher

Today I wanted to mock url_launcher, but it was not as easy as the docs said. Here's the code I wanted to test: Future launchSearch(String word, SearchType searchType) async { final url = getSearchUrl(word, searchType); Uri uri = Uri.parse(url); if (await canLaunchUrl(uri)) { await launchUrl(uri); } else { throw
Dec 15, 2025 — 3 min read

How to fix Null issue when using Mockito's `any` or `captureAny`

This morning I was trying to verify an invocation with Mockito in Dart, but somehow it threw an error about Null. The argument type 'Null' can't be assigned to the parameter type 'Todo'. dart(argument_type_not_assignable) A few searches proposed unsatisfactory workarounds, basically saying we should change our
Nov 12, 2025 — 1 min read

How to process a paste command but still let TextField handle it?

It took me hours to figure out. I was not able to find sample code, and ChatGPT and Gemini kept hallucinating answers... Basic implementation. TextField stops responding to paste events Here's the usual way of handling a shortkey: Shortcuts( shortcuts: const { SingleActivator( LogicalKeyboardKey.keyV, // Command key on Mac.
Sep 19, 2025 — 3 min read
wafrat © 2025