wafrat
  • Home
  • About
  • Contact me
Subscribe

mockito

A collection of 1 post
flutter

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
wafrat © 2025